#332FA9#332FA9
#332FA9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.187 H 275.3°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #332FA9 |
|---|---|
| RGB | rgb(51, 47, 169) |
| HSL | hsl(242, 56%, 42%) |
| HSV | hsv(242, 72%, 66%) |
| CMYK | cmyk(69.8%, 72.2%, 0%, 33.7%) |
| CIE-LAB | lab(28.38, 41.07, -64.42) |
| CIE-LCH | lch(28.38, 76.40, 302.52°) |
| OKLab | oklab(40% 0.0172 -0.1862) |
| OKLCH | oklch(40% 0.187 275.3) |
| XYZ | xyz(9.5408, 5.6005, 38.1066) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Indigo Blue
#3A18B1
ΔE00 4.75
Ocean Blue
#4F42B5
ΔE00 6.03
Blueberry
#464196
ΔE00 6.37
True Blue
#010FCC
ΔE00 6.54
Blue With A Hint Of Purple
#533CC6
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332FA9 #A5A92F
analogous
#2F68A9 #332FA9 #702FA9
triadic
#332FA9 #A9332F #2FA933
tetradic
#332FA9 #A92F68 #A5A92F #2FA970
square
#332FA9 #A92F68 #A5A92F #2FA970
split-complementary
#332FA9 #A9702F #68A92F
monochromatic
#161449 #252279 #332FA9 #4D49CC #7C79DA
Accessibility & contrast
On white
9.90
#332FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#332FA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332FA9
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332FA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332FA9 | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #332fa9; /* rgb */ color: rgb(51, 47, 169); /* oklch */ color: oklch(40.0% 0.187 275.3);
Tailwind
colors: {
custom: {
50: '#7c69c4',
500: '#332fa9',
950: '#000000',
},
}SCSS
$custom: #332fa9; $custom-light: #7c69c4; $custom-dark: #000000;
JSON
{
"hex": "#332fa9",
"rgb": {
"r": 51,
"g": 47,
"b": 169
},
"hsl": {
"h": 241.967,
"s": 56.481,
"l": 42.353
},
"oklch": {
"l": 0.40004,
"c": 0.187,
"h": 275.3
},
"luminance": 0.05601
}Semantic roles & 50–950 ramp
primary
#332FA9
secondary
#BFC272
accent
#E048DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82