#332BA2#332BA2
#332BA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.182 H 276.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #332BA2 |
|---|---|
| RGB | rgb(51, 43, 162) |
| HSL | hsl(244, 58%, 40%) |
| HSV | hsv(244, 73%, 64%) |
| CMYK | cmyk(68.5%, 73.5%, 0%, 36.5%) |
| CIE-LAB | lab(26.85, 41.07, -62.72) |
| CIE-LCH | lch(26.85, 74.97, 303.22°) |
| OKLab | oklab(38.7% 0.021 -0.1812) |
| OKLCH | oklch(38.7% 0.182 276.6) |
| XYZ | xyz(8.7486, 5.0394, 34.6871) |
| Luminance | 0.0504 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.24
Sapphire (survey)
#2138AB
ΔE00 4.43
Royal
#0C1793
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 6.29
Ultramarine
#2000B1
ΔE00 6.52
True Blue
#010FCC
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332BA2 #9AA22B
analogous
#2B5EA2 #332BA2 #6F2BA2
triadic
#332BA2 #A2332B #2BA233
tetradic
#332BA2 #A22B5E #9AA22B #2BA26F
square
#332BA2 #A22B5E #9AA22B #2BA26F
split-complementary
#332BA2 #A26F2B #5EA22B
monochromatic
#151141 #241E72 #332BA2 #483ECC #766FD9
Accessibility & contrast
On white
10.46
#332BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#332BA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332BA2
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332BA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332BA2 | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #332ba2; /* rgb */ color: rgb(51, 43, 162); /* oklch */ color: oklch(38.7% 0.182 276.6);
Tailwind
colors: {
custom: {
50: '#7b66bf',
500: '#332ba2',
950: '#000000',
},
}SCSS
$custom: #332ba2; $custom-light: #7b66bf; $custom-dark: #000000;
JSON
{
"hex": "#332ba2",
"rgb": {
"r": 51,
"g": 43,
"b": 162
},
"hsl": {
"h": 244.034,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.38699,
"c": 0.18242,
"h": 276.6
},
"luminance": 0.0504
}Semantic roles & 50–950 ramp
primary
#332BA2
secondary
#BAC069
accent
#E147D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81