#332B71#332B71
#332B71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.1% C 0.116 H 283.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #332B71 |
|---|---|
| RGB | rgb(51, 43, 113) |
| HSL | hsl(247, 45%, 31%) |
| HSV | hsv(247, 62%, 44%) |
| CMYK | cmyk(54.9%, 61.9%, 0%, 55.7%) |
| CIE-LAB | lab(22.39, 24.47, -39.46) |
| CIE-LCH | lch(22.39, 46.43, 301.80°) |
| OKLab | oklab(34.1% 0.0272 -0.113) |
| OKLCH | oklch(34.1% 0.116 283.5) |
| XYZ | xyz(5.2089, 3.6235, 16.0445) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.72
Darkslateblue
#483D8B
ΔE00 6.36
Blueberry
#464196
ΔE00 8.05
Royal
#0C1793
ΔE00 8.63
Marine
#042E60
ΔE00 8.90
Dark Indigo
#1F0954
ΔE00 9.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332B71 #69712B
analogous
#2B4671 #332B71 #562B71
triadic
#332B71 #71332B #2B7133
tetradic
#332B71 #712B46 #69712B #2B7156
square
#332B71 #712B46 #69712B #2B7156
split-complementary
#332B71 #71562B #46712B
monochromatic
#0B0918 #1F1A45 #332B71 #473C9D #6357BF
Accessibility & contrast
On white
12.18
#332B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#332B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332B71
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332B71 | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#1A3B49
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #332b71; /* rgb */ color: rgb(51, 43, 113); /* oklch */ color: oklch(34.1% 0.116 283.5);
Tailwind
colors: {
custom: {
50: '#71649a',
500: '#332b71',
950: '#000000',
},
}SCSS
$custom: #332b71; $custom-light: #71649a; $custom-dark: #000000;
JSON
{
"hex": "#332b71",
"rgb": {
"r": 51,
"g": 43,
"b": 113
},
"hsl": {
"h": 246.857,
"s": 44.872,
"l": 30.588
},
"oklch": {
"l": 0.34102,
"c": 0.11624,
"h": 283.5
},
"luminance": 0.03624
}Semantic roles & 50–950 ramp
primary
#332B71
secondary
#9AA355
accent
#D553C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E