#332CA1#332CA1
#332CA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.180 H 276.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #332CA1 |
|---|---|
| RGB | rgb(51, 44, 161) |
| HSL | hsl(244, 57%, 40%) |
| HSV | hsv(244, 73%, 63%) |
| CMYK | cmyk(68.3%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(26.95, 40.16, -61.94) |
| CIE-LCH | lch(26.95, 73.82, 302.96°) |
| OKLab | oklab(38.75% 0.0205 -0.1789) |
| OKLCH | oklch(38.75% 0.18 276.5) |
| XYZ | xyz(8.6968, 5.0776, 34.2331) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.24
Indigo Blue
#3A18B1
ΔE00 4.54
Royal
#0C1793
ΔE00 5.68
Cobalt Blue
#030AA7
ΔE00 6.53
Blueberry
#464196
ΔE00 6.57
Ultramarine
#2000B1
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332CA1 #9AA12C
analogous
#2C5FA1 #332CA1 #6E2CA1
triadic
#332CA1 #A1332C #2CA133
tetradic
#332CA1 #A12C5F #9AA12C #2CA16E
square
#332CA1 #A12C5F #9AA12C #2CA16E
split-complementary
#332CA1 #A16E2C #5FA12C
monochromatic
#151241 #241F71 #332CA1 #4840CB #7670D8
Accessibility & contrast
On white
10.42
#332CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#332CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332CA1
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332CA1 | 1.00 | 10.42 | 2.02 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332ca1; /* rgb */ color: rgb(51, 44, 161); /* oklch */ color: oklch(38.7% 0.180 276.5);
Tailwind
colors: {
custom: {
50: '#7a67be',
500: '#332ca1',
950: '#000000',
},
}SCSS
$custom: #332ca1; $custom-light: #7a67be; $custom-dark: #000000;
JSON
{
"hex": "#332ca1",
"rgb": {
"r": 51,
"g": 44,
"b": 161
},
"hsl": {
"h": 243.59,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.38746,
"c": 0.1801,
"h": 276.5
},
"luminance": 0.05078
}Semantic roles & 50–950 ramp
primary
#332CA1
secondary
#BABF6A
accent
#E047D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81