#332CA6#332CA6
#332CA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.186 H 276.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #332CA6 |
|---|---|
| RGB | rgb(51, 44, 166) |
| HSL | hsl(243, 58%, 41%) |
| HSV | hsv(243, 73%, 65%) |
| CMYK | cmyk(69.3%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(27.46, 41.82, -64.14) |
| CIE-LCH | lch(27.46, 76.57, 303.10°) |
| OKLab | oklab(39.25% 0.0196 -0.1853) |
| OKLCH | oklch(39.25% 0.186 276) |
| XYZ | xyz(9.1466, 5.2575, 36.6018) |
| Luminance | 0.0526 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.11
Indigo Blue
#3A18B1
ΔE00 4.19
Royal
#0C1793
ΔE00 5.96
True Blue
#010FCC
ΔE00 6.30
Cobalt Blue
#030AA7
ΔE00 6.48
Ultramarine
#2000B1
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332CA6 #9FA62C
analogous
#2C62A6 #332CA6 #702CA6
triadic
#332CA6 #A6332C #2CA633
tetradic
#332CA6 #A62C62 #9FA62C #2CA670
square
#332CA6 #A62C62 #9FA62C #2CA670
split-complementary
#332CA6 #A6702C #62A62C
monochromatic
#151245 #241F76 #332CA6 #4A42CD #7973DA
Accessibility & contrast
On white
10.24
#332CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#332CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332CA6
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332CA6 | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #332ca6; /* rgb */ color: rgb(51, 44, 166); /* oklch */ color: oklch(39.3% 0.186 276.0);
Tailwind
colors: {
custom: {
50: '#7b67c2',
500: '#332ca6',
950: '#000000',
},
}SCSS
$custom: #332ca6; $custom-light: #7b67c2; $custom-dark: #000000;
JSON
{
"hex": "#332ca6",
"rgb": {
"r": 51,
"g": 44,
"b": 166
},
"hsl": {
"h": 243.443,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.39254,
"c": 0.18638,
"h": 276
},
"luminance": 0.05258
}Semantic roles & 50–950 ramp
primary
#332CA6
secondary
#BCC16D
accent
#E146D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81