#332FA2#332FA2
#332FA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.178 H 275.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).
Color values
| HEX | #332FA2 |
|---|---|
| RGB | rgb(51, 47, 162) |
| HSL | hsl(242, 55%, 41%) |
| HSV | hsv(242, 71%, 64%) |
| CMYK | cmyk(68.5%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(27.70, 38.72, -61.32) |
| CIE-LCH | lch(27.70, 72.53, 302.27°) |
| OKLab | oklab(39.31% 0.0184 -0.1771) |
| OKLCH | oklch(39.31% 0.178 275.9) |
| XYZ | xyz(8.9012, 5.3447, 34.7380) |
| Luminance | 0.0534 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.55
Indigo Blue
#3A18B1
ΔE00 5.15
Blueberry
#464196
ΔE00 5.97
Royal
#0C1793
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.41
Darkslateblue
#483D8B
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332FA2 #9EA22F
analogous
#2F64A2 #332FA2 #6C2FA2
triadic
#332FA2 #A2332F #2FA233
tetradic
#332FA2 #A22F64 #9EA22F #2FA26C
square
#332FA2 #A22F64 #9EA22F #2FA26C
split-complementary
#332FA2 #A26C2F #64A22F
monochromatic
#151343 #242173 #332FA2 #4A45C9 #7875D7
Accessibility & contrast
On white
10.15
#332FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#332FA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332FA2
10.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332FA2 | 1.00 | 10.15 | 2.07 | 10.15 |
| #FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #332fa2; /* rgb */ color: rgb(51, 47, 162); /* oklch */ color: oklch(39.3% 0.178 275.9);
Tailwind
colors: {
custom: {
50: '#7a69bf',
500: '#332fa2',
950: '#000000',
},
}SCSS
$custom: #332fa2; $custom-light: #7a69bf; $custom-dark: #000000;
JSON
{
"hex": "#332fa2",
"rgb": {
"r": 51,
"g": 47,
"b": 162
},
"hsl": {
"h": 242.087,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.39305,
"c": 0.1781,
"h": 275.9
},
"luminance": 0.05345
}Semantic roles & 50–950 ramp
primary
#332FA2
secondary
#BCBF6E
accent
#DE49D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81