#332AA2#332AA2
#332AA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.183 H 276.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).
Color values
| HEX | #332AA2 |
|---|---|
| RGB | rgb(51, 42, 162) |
| HSL | hsl(245, 59%, 40%) |
| HSV | hsv(245, 74%, 64%) |
| CMYK | cmyk(68.5%, 74.1%, 0%, 36.5%) |
| CIE-LAB | lab(26.64, 41.64, -63.06) |
| CIE-LCH | lch(26.64, 75.57, 303.44°) |
| OKLab | oklab(38.55% 0.0216 -0.1822) |
| OKLCH | oklch(38.55% 0.183 276.8) |
| XYZ | xyz(8.7127, 4.9676, 34.6751) |
| Luminance | 0.0497 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.03
Sapphire (survey)
#2138AB
ΔE00 4.65
Royal
#0C1793
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 6.07
Ultramarine
#2000B1
ΔE00 6.29
True Blue
#010FCC
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332AA2 #99A22A
analogous
#2A5DA2 #332AA2 #6F2AA2
triadic
#332AA2 #A2332A #2AA233
tetradic
#332AA2 #A22A5D #99A22A #2AA26F
square
#332AA2 #A22A5D #99A22A #2AA26F
split-complementary
#332AA2 #A26F2A #5DA22A
monochromatic
#141141 #241D71 #332AA2 #473DCD #756DD9
Accessibility & contrast
On white
10.53
#332AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#332AA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332AA2
10.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332AA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332AA2 | 1.00 | 10.53 | 1.99 | 10.53 |
| #FFFFFF | 10.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #332aa2; /* rgb */ color: rgb(51, 42, 162); /* oklch */ color: oklch(38.6% 0.183 276.8);
Tailwind
colors: {
custom: {
50: '#7b65bf',
500: '#332aa2',
950: '#000000',
},
}SCSS
$custom: #332aa2; $custom-light: #7b65bf; $custom-dark: #000000;
JSON
{
"hex": "#332aa2",
"rgb": {
"r": 51,
"g": 42,
"b": 162
},
"hsl": {
"h": 244.5,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.38554,
"c": 0.18346,
"h": 276.8
},
"luminance": 0.04968
}Semantic roles & 50–950 ramp
primary
#332AA2
secondary
#B9C068
accent
#E246D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81