#332AA6#332AA6
#332AA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.188 H 276.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #332AA6 |
|---|---|
| RGB | rgb(51, 42, 166) |
| HSL | hsl(244, 60%, 41%) |
| HSV | hsv(244, 75%, 65%) |
| CMYK | cmyk(69.3%, 74.7%, 0%, 34.9%) |
| CIE-LAB | lab(27.05, 42.95, -64.80) |
| CIE-LCH | lch(27.05, 77.75, 303.54°) |
| OKLab | oklab(38.97% 0.0208 -0.1873) |
| OKLCH | oklch(38.97% 0.188 276.3) |
| XYZ | xyz(9.0739, 5.1121, 36.5775) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.75
Sapphire (survey)
#2138AB
ΔE00 4.55
Royal
#0C1793
ΔE00 5.62
True Blue
#010FCC
ΔE00 6.00
Cobalt Blue
#030AA7
ΔE00 6.04
Ultramarine
#2000B1
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332AA6 #9DA62A
analogous
#2A5FA6 #332AA6 #712AA6
triadic
#332AA6 #A6332A #2AA633
tetradic
#332AA6 #A62A5F #9DA62A #2AA671
square
#332AA6 #A62A5F #9DA62A #2AA671
split-complementary
#332AA6 #A6712A #5FA62A
monochromatic
#151144 #241E75 #332AA6 #493FCE #7770DB
Accessibility & contrast
On white
10.38
#332AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#332AA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332AA6
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332AA6 | 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)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332aa6; /* rgb */ color: rgb(51, 42, 166); /* oklch */ color: oklch(39.0% 0.188 276.3);
Tailwind
colors: {
custom: {
50: '#7c66c2',
500: '#332aa6',
950: '#000000',
},
}SCSS
$custom: #332aa6; $custom-light: #7c66c2; $custom-dark: #000000;
JSON
{
"hex": "#332aa6",
"rgb": {
"r": 51,
"g": 42,
"b": 166
},
"hsl": {
"h": 244.355,
"s": 59.615,
"l": 40.784
},
"oklch": {
"l": 0.38967,
"c": 0.18844,
"h": 276.3
},
"luminance": 0.05113
}Semantic roles & 50–950 ramp
primary
#332AA6
secondary
#BBC26A
accent
#E345D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81