#2F217C#2F217C
#2F217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 281.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2F217C |
|---|---|
| RGB | rgb(47, 33, 124) |
| HSL | hsl(249, 58%, 31%) |
| HSV | hsv(249, 73%, 49%) |
| CMYK | cmyk(62.1%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(20.62, 33.80, -49.38) |
| CIE-LCH | lch(20.62, 59.84, 304.39°) |
| OKLab | oklab(33.03% 0.0301 -0.1423) |
| OKLCH | oklch(33.03% 0.145 281.9) |
| XYZ | xyz(5.3531, 3.1469, 19.3902) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Royal
#0C1793
ΔE00 5.04
Indigo (survey)
#380282
ΔE00 5.68
Dark Royal Blue
#02066F
ΔE00 6.68
Deep Blue
#040273
ΔE00 6.99
Darkblue
#00008B
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F217C #6E7C21
analogous
#21407C #2F217C #5C217C
triadic
#2F217C #7C2F21 #217C2F
tetradic
#2F217C #7C2140 #6E7C21 #217C5C
square
#2F217C #7C2140 #6E7C21 #217C5C
split-complementary
#2F217C #7C5C21 #407C21
monochromatic
#0A071B #1D144C #2F217C #412EAC #5D49CF
Accessibility & contrast
On white
12.89
#2F217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F217C
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F217C | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f217c; /* rgb */ color: rgb(47, 33, 124); /* oklch */ color: oklch(33.0% 0.145 281.9);
Tailwind
colors: {
custom: {
50: '#715ea3',
500: '#2f217c',
950: '#000000',
},
}SCSS
$custom: #2f217c; $custom-light: #715ea3; $custom-dark: #000000;
JSON
{
"hex": "#2f217c",
"rgb": {
"r": 47,
"g": 33,
"b": 124
},
"hsl": {
"h": 249.231,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.33035,
"c": 0.14543,
"h": 281.9
},
"luminance": 0.03147
}Semantic roles & 50–950 ramp
primary
#2F217C
secondary
#9FAF4A
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F