#332BA4#332BA4
#332BA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.185 H 276.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #332BA4 |
|---|---|
| RGB | rgb(51, 43, 164) |
| HSL | hsl(244, 58%, 41%) |
| HSV | hsv(244, 74%, 64%) |
| CMYK | cmyk(68.9%, 73.8%, 0%, 35.7%) |
| CIE-LAB | lab(27.05, 41.73, -63.60) |
| CIE-LCH | lch(27.05, 76.07, 303.27°) |
| OKLab | oklab(38.9% 0.0206 -0.1838) |
| OKLCH | oklch(38.9% 0.185 276.4) |
| XYZ | xyz(8.9278, 5.1111, 35.6308) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.10
Sapphire (survey)
#2138AB
ΔE00 4.37
Royal
#0C1793
ΔE00 5.66
Cobalt Blue
#030AA7
ΔE00 6.26
True Blue
#010FCC
ΔE00 6.35
Ultramarine
#2000B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332BA4 #9CA42B
analogous
#2B5FA4 #332BA4 #6F2BA4
triadic
#332BA4 #A4332B #2BA433
tetradic
#332BA4 #A42B5F #9CA42B #2BA46F
square
#332BA4 #A42B5F #9CA42B #2BA46F
split-complementary
#332BA4 #A46F2B #5FA42B
monochromatic
#151243 #241E74 #332BA4 #493FCD #7770D9
Accessibility & contrast
On white
10.38
#332BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#332BA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332BA4
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332BA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332BA4 | 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)
#0045A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332ba4; /* rgb */ color: rgb(51, 43, 164); /* oklch */ color: oklch(38.9% 0.185 276.4);
Tailwind
colors: {
custom: {
50: '#7b66c0',
500: '#332ba4',
950: '#000000',
},
}SCSS
$custom: #332ba4; $custom-light: #7b66c0; $custom-dark: #000000;
JSON
{
"hex": "#332ba4",
"rgb": {
"r": 51,
"g": 43,
"b": 164
},
"hsl": {
"h": 243.967,
"s": 58.454,
"l": 40.588
},
"oklch": {
"l": 0.38903,
"c": 0.18493,
"h": 276.4
},
"luminance": 0.05112
}Semantic roles & 50–950 ramp
primary
#332BA4
secondary
#BBC16A
accent
#E246D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81