#332F94#332F94
#332F94 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.160 H 277.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #332F94 |
|---|---|
| RGB | rgb(51, 47, 148) |
| HSL | hsl(242, 52%, 38%) |
| HSV | hsv(242, 68%, 58%) |
| CMYK | cmyk(65.5%, 68.2%, 0%, 42%) |
| CIE-LAB | lab(26.37, 33.94, -54.95) |
| CIE-LCH | lch(26.37, 64.58, 301.70°) |
| OKLab | oklab(37.95% 0.0204 -0.1585) |
| OKLCH | oklch(37.95% 0.16 277.3) |
| XYZ | xyz(7.7253, 4.8743, 28.5450) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.54
Darkslateblue
#483D8B
ΔE00 5.43
Blueberry
#464196
ΔE00 5.49
Royal
#0C1793
ΔE00 6.15
Indigo Blue
#3A18B1
ΔE00 6.47
Ocean Blue
#4F42B5
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332F94 #90942F
analogous
#2F5D94 #332F94 #652F94
triadic
#332F94 #94332F #2F9433
tetradic
#332F94 #942F5D #90942F #2F9465
square
#332F94 #942F5D #90942F #2F9465
split-complementary
#332F94 #94652F #5D942F
monochromatic
#131137 #232066 #332F94 #443EC2 #716DD1
Accessibility & contrast
On white
10.63
#332F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#332F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332F94
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332F94 | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #332f94; /* rgb */ color: rgb(51, 47, 148); /* oklch */ color: oklch(38.0% 0.160 277.3);
Tailwind
colors: {
custom: {
50: '#7768b4',
500: '#332f94',
950: '#000000',
},
}SCSS
$custom: #332f94; $custom-light: #7768b4; $custom-dark: #000000;
JSON
{
"hex": "#332f94",
"rgb": {
"r": 51,
"g": 47,
"b": 148
},
"hsl": {
"h": 242.376,
"s": 51.795,
"l": 38.235
},
"oklch": {
"l": 0.3795,
"c": 0.15979,
"h": 277.3
},
"luminance": 0.04875
}Semantic roles & 50–950 ramp
primary
#332F94
secondary
#B5B867
accent
#DB4DD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80