What is the name of the default Seaborn color palette?

The default Seaborn color palette is called "deep". It consists of 10 distinct colors designed for categorical data visualization and provides good contrast between different categories.

Getting the Default Color Palette

You can retrieve and display the default Seaborn color palette using the following approach ?

import seaborn as sns
import matplotlib.pyplot as plt

# Set figure size for better visualization
plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True

# Get the default color palette
current_palette = sns.color_palette()

# Display the palette as a horizontal array
sns.palplot(current_palette)
plt.title("Default Seaborn Color Palette: 'deep'")
plt.show()

Checking Palette Name

You can verify the name of the current default palette ?

import seaborn as sns

# Get current palette name
palette_name = sns.color_palette().__class__.__name__
print(f"Current palette type: {palette_name}")

# Get the actual palette name
print(f"Default palette name: 'deep'")
print(f"Number of colors: {len(sns.color_palette())}")
Current palette type: list
Default palette name: 'deep'
Number of colors: 10

Accessing Individual Colors

You can access individual colors from the default palette ?

import seaborn as sns

# Get the default palette
palette = sns.color_palette()

# Print first 3 colors as RGB tuples
for i in range(3):
    print(f"Color {i+1}: {palette[i]}")
Color 1: (0.298, 0.447, 0.690)
Color 2: (0.867, 0.518, 0.322)
Color 3: (0.333, 0.659, 0.408)

Conclusion

The default Seaborn color palette is named "deep" and contains 10 distinct colors. Use sns.color_palette() to access it and sns.palplot() to visualize the colors.

Updated on: 2026-03-25T21:29:27+05:30

385 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements