#2F217B#2F217B
#2F217B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.144 H 282.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F217B |
|---|---|
| RGB | rgb(47, 33, 123) |
| HSL | hsl(249, 58%, 31%) |
| HSV | hsv(249, 73%, 48%) |
| CMYK | cmyk(61.8%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(20.53, 33.47, -48.90) |
| CIE-LCH | lch(20.53, 59.26, 304.39°) |
| OKLab | oklab(32.93% 0.0303 -0.1409) |
| OKLCH | oklch(32.93% 0.144 282.1) |
| XYZ | xyz(5.2902, 3.1218, 19.0588) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Royal
#0C1793
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 5.74
Dark Royal Blue
#02066F
ΔE00 6.67
Deep Blue
#040273
ΔE00 7.00
Navy
#000080
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F217B #6D7B21
analogous
#21407B #2F217B #5C217B
triadic
#2F217B #7B2F21 #217B2F
tetradic
#2F217B #7B2140 #6D7B21 #217B5C
square
#2F217B #7B2140 #6D7B21 #217B5C
split-complementary
#2F217B #7B5C21 #407B21
monochromatic
#0A071A #1D144B #2F217B #412EAB #5D48CE
Accessibility & contrast
On white
12.93
#2F217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2F217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F217B
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F217B | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2f217b; /* rgb */ color: rgb(47, 33, 123); /* oklch */ color: oklch(32.9% 0.144 282.1);
Tailwind
colors: {
custom: {
50: '#715ea2',
500: '#2f217b',
950: '#000000',
},
}SCSS
$custom: #2f217b; $custom-light: #715ea2; $custom-dark: #000000;
JSON
{
"hex": "#2f217b",
"rgb": {
"r": 47,
"g": 33,
"b": 123
},
"hsl": {
"h": 249.333,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.32935,
"c": 0.14411,
"h": 282.1
},
"luminance": 0.03122
}Semantic roles & 50–950 ramp
primary
#2F217B
secondary
#9EAE4A
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F