#332FA6#332FA6
#332FA6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.183 H 275.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #332FA6 |
|---|---|
| RGB | rgb(51, 47, 166) |
| HSL | hsl(242, 56%, 42%) |
| HSV | hsv(242, 72%, 65%) |
| CMYK | cmyk(69.3%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(28.09, 40.07, -63.10) |
| CIE-LCH | lch(28.09, 74.75, 302.41°) |
| OKLab | oklab(39.7% 0.0177 -0.1823) |
| OKLCH | oklch(39.7% 0.183 275.6) |
| XYZ | xyz(9.2624, 5.4892, 36.6404) |
| Luminance | 0.0549 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.45
Indigo Blue
#3A18B1
ΔE00 4.90
Ocean Blue
#4F42B5
ΔE00 6.18
Blueberry
#464196
ΔE00 6.19
Royal
#0C1793
ΔE00 6.52
True Blue
#010FCC
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332FA6 #A2A62F
analogous
#2F67A6 #332FA6 #6F2FA6
triadic
#332FA6 #A6332F #2FA633
tetradic
#332FA6 #A62F67 #A2A62F #2FA66F
square
#332FA6 #A62F67 #A2A62F #2FA66F
split-complementary
#332FA6 #A66F2F #67A62F
monochromatic
#161447 #242176 #332FA6 #4C47CB #7A77D8
Accessibility & contrast
On white
10.01
#332FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#332FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332FA6
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332FA6 | 1.00 | 10.01 | 2.10 | 10.01 |
| #FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #332fa6; /* rgb */ color: rgb(51, 47, 166); /* oklch */ color: oklch(39.7% 0.183 275.6);
Tailwind
colors: {
custom: {
50: '#7b69c2',
500: '#332fa6',
950: '#000000',
},
}SCSS
$custom: #332fa6; $custom-light: #7b69c2; $custom-dark: #000000;
JSON
{
"hex": "#332fa6",
"rgb": {
"r": 51,
"g": 47,
"b": 166
},
"hsl": {
"h": 242.017,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.39703,
"c": 0.1832,
"h": 275.6
},
"luminance": 0.0549
}Semantic roles & 50–950 ramp
primary
#332FA6
secondary
#BEC170
accent
#DF49DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81