#332CA2#332CA2
#332CA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.181 H 276.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #332CA2 |
|---|---|
| RGB | rgb(51, 44, 162) |
| HSL | hsl(244, 57%, 40%) |
| HSV | hsv(244, 73%, 64%) |
| CMYK | cmyk(68.5%, 72.8%, 0%, 36.5%) |
| CIE-LAB | lab(27.05, 40.49, -62.38) |
| CIE-LCH | lch(27.05, 74.37, 302.99°) |
| OKLab | oklab(38.85% 0.0203 -0.1802) |
| OKLCH | oklch(38.85% 0.181 276.4) |
| XYZ | xyz(8.7854, 5.1130, 34.6993) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.21
Indigo Blue
#3A18B1
ΔE00 4.46
Royal
#0C1793
ΔE00 5.73
Cobalt Blue
#030AA7
ΔE00 6.51
Blueberry
#464196
ΔE00 6.61
True Blue
#010FCC
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332CA2 #9BA22C
analogous
#2C60A2 #332CA2 #6E2CA2
triadic
#332CA2 #A2332C #2CA233
tetradic
#332CA2 #A22C60 #9BA22C #2CA26E
square
#332CA2 #A22C60 #9BA22C #2CA26E
split-complementary
#332CA2 #A26E2C #60A22C
monochromatic
#151242 #241F72 #332CA2 #4840CB #7670D8
Accessibility & contrast
On white
10.38
#332CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#332CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332CA2
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332CA2 | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332ca2; /* rgb */ color: rgb(51, 44, 162); /* oklch */ color: oklch(38.8% 0.181 276.4);
Tailwind
colors: {
custom: {
50: '#7a67bf',
500: '#332ca2',
950: '#000000',
},
}SCSS
$custom: #332ca2; $custom-light: #7a67bf; $custom-dark: #000000;
JSON
{
"hex": "#332ca2",
"rgb": {
"r": 51,
"g": 44,
"b": 162
},
"hsl": {
"h": 243.559,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.38847,
"c": 0.18136,
"h": 276.4
},
"luminance": 0.05114
}Semantic roles & 50–950 ramp
primary
#332CA2
secondary
#BABF6A
accent
#E147D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81