#332AA0#332AA0
#332AA0 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.181 H 277.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #332AA0 |
|---|---|
| RGB | rgb(51, 42, 160) |
| HSL | hsl(245, 58%, 40%) |
| HSV | hsv(245, 74%, 63%) |
| CMYK | cmyk(68.1%, 73.8%, 0%, 37.3%) |
| CIE-LAB | lab(26.44, 40.98, -62.18) |
| CIE-LCH | lch(26.44, 74.47, 303.39°) |
| OKLab | oklab(38.35% 0.022 -0.1796) |
| OKLCH | oklch(38.35% 0.181 277) |
| XYZ | xyz(8.5363, 4.8971, 33.7463) |
| Luminance | 0.0490 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.20
Sapphire (survey)
#2138AB
ΔE00 4.72
Royal
#0C1793
ΔE00 5.27
Cobalt Blue
#030AA7
ΔE00 6.11
Ultramarine
#2000B1
ΔE00 6.39
Royal Blue (survey)
#0504AA
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332AA0 #97A02A
analogous
#2A5CA0 #332AA0 #6E2AA0
triadic
#332AA0 #A0332A #2AA033
tetradic
#332AA0 #A02A5C #97A02A #2AA06E
square
#332AA0 #A02A5C #97A02A #2AA06E
split-complementary
#332AA0 #A06E2A #5CA02A
monochromatic
#14113F #241D70 #332AA0 #473CCC #746CD8
Accessibility & contrast
On white
10.61
#332AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#332AA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332AA0
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332AA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332AA0 | 1.00 | 10.61 | 1.98 | 10.61 |
| #FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #332aa0; /* rgb */ color: rgb(51, 42, 160); /* oklch */ color: oklch(38.3% 0.181 277.0);
Tailwind
colors: {
custom: {
50: '#7a65bd',
500: '#332aa0',
950: '#000000',
},
}SCSS
$custom: #332aa0; $custom-light: #7a65bd; $custom-dark: #000000;
JSON
{
"hex": "#332aa0",
"rgb": {
"r": 51,
"g": 42,
"b": 160
},
"hsl": {
"h": 244.576,
"s": 58.416,
"l": 39.608
},
"oklch": {
"l": 0.38348,
"c": 0.18096,
"h": 277
},
"luminance": 0.04898
}Semantic roles & 50–950 ramp
primary
#332AA0
secondary
#B8BF67
accent
#E246D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81