#2F217F#2F217F
#2F217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.149 H 281.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2F217F |
|---|---|
| RGB | rgb(47, 33, 127) |
| HSL | hsl(249, 59%, 31%) |
| HSV | hsv(249, 74%, 50%) |
| CMYK | cmyk(63%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(20.92, 34.79, -50.80) |
| CIE-LCH | lch(20.92, 61.57, 304.41°) |
| OKLab | oklab(33.34% 0.0295 -0.1464) |
| OKLCH | oklch(33.34% 0.149 281.4) |
| XYZ | xyz(5.5457, 3.2240, 20.4046) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.65
Indigo (survey)
#380282
ΔE00 5.53
Dark Royal Blue
#02066F
ΔE00 6.73
Darkblue
#00008B
ΔE00 6.78
Navy
#000080
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F217F #717F21
analogous
#21427F #2F217F #5E217F
triadic
#2F217F #7F2F21 #217F2F
tetradic
#2F217F #7F2142 #717F21 #217F5E
square
#2F217F #7F2142 #717F21 #217F5E
split-complementary
#2F217F #7F5E21 #427F21
monochromatic
#0B081E #1D144E #2F217F #412EB0 #5E4AD0
Accessibility & contrast
On white
12.77
#2F217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2F217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F217F
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F217F | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f217f; /* rgb */ color: rgb(47, 33, 127); /* oklch */ color: oklch(33.3% 0.149 281.4);
Tailwind
colors: {
custom: {
50: '#725ea5',
500: '#2f217f',
950: '#000000',
},
}SCSS
$custom: #2f217f; $custom-light: #725ea5; $custom-dark: #000000;
JSON
{
"hex": "#2f217f",
"rgb": {
"r": 47,
"g": 33,
"b": 127
},
"hsl": {
"h": 248.936,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33337,
"c": 0.14937,
"h": 281.4
},
"luminance": 0.03224
}Semantic roles & 50–950 ramp
primary
#2F217F
secondary
#A2B24A
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F