#332FA7#332FA7
#332FA7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.184 H 275.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #332FA7 |
|---|---|
| RGB | rgb(51, 47, 167) |
| HSL | hsl(242, 56%, 42%) |
| HSV | hsv(242, 72%, 65%) |
| CMYK | cmyk(69.5%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(28.18, 40.40, -63.54) |
| CIE-LCH | lch(28.18, 75.30, 302.45°) |
| OKLab | oklab(39.8% 0.0176 -0.1836) |
| OKLCH | oklch(39.8% 0.184 275.5) |
| XYZ | xyz(9.3545, 5.5260, 37.1254) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Indigo Blue
#3A18B1
ΔE00 4.85
Ocean Blue
#4F42B5
ΔE00 6.13
Blueberry
#464196
ΔE00 6.25
Royal
#0C1793
ΔE00 6.57
True Blue
#010FCC
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332FA7 #A3A72F
analogous
#2F67A7 #332FA7 #6F2FA7
triadic
#332FA7 #A7332F #2FA733
tetradic
#332FA7 #A72F67 #A3A72F #2FA76F
square
#332FA7 #A72F67 #A3A72F #2FA76F
split-complementary
#332FA7 #A76F2F #67A72F
monochromatic
#161447 #242277 #332FA7 #4C48CB #7B78D9
Accessibility & contrast
On white
9.97
#332FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#332FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332FA7
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332FA7 | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #332fa7; /* rgb */ color: rgb(51, 47, 167); /* oklch */ color: oklch(39.8% 0.184 275.5);
Tailwind
colors: {
custom: {
50: '#7b69c2',
500: '#332fa7',
950: '#000000',
},
}SCSS
$custom: #332fa7; $custom-light: #7b69c2; $custom-dark: #000000;
JSON
{
"hex": "#332fa7",
"rgb": {
"r": 51,
"g": 47,
"b": 167
},
"hsl": {
"h": 242,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.39803,
"c": 0.18447,
"h": 275.5
},
"luminance": 0.05527
}Semantic roles & 50–950 ramp
primary
#332FA7
secondary
#BEC171
accent
#DF48DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82