#2F173F#2F173F
#2F173F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.076 H 309.8°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2F173F |
|---|---|
| RGB | rgb(47, 23, 63) |
| HSL | hsl(276, 47%, 17%) |
| HSV | hsv(276, 63%, 25%) |
| CMYK | cmyk(25.4%, 63.5%, 0%, 75.3%) |
| CIE-LAB | lab(13.08, 20.83, -20.90) |
| CIE-LCH | lch(13.08, 29.51, 314.90°) |
| OKLab | oklab(25.95% 0.0489 -0.0587) |
| OKLCH | oklch(25.95% 0.076 309.8) |
| XYZ | xyz(2.3757, 1.5761, 4.8807) |
| Luminance | 0.0158 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 5.05
Very Dark Purple
#2A0134
ΔE00 5.58
Midnight Purple
#280137
ΔE00 5.63
Eggplant
#380835
ΔE00 5.89
Dark Violet
#34013F
ΔE00 6.05
Deep Purple
#36013F
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F173F #273F17
analogous
#1B173F #2F173F #3F173B
triadic
#2F173F #3F2F17 #173F2F
tetradic
#2F173F #3F1B17 #273F17 #173B3F
square
#2F173F #3F1B17 #273F17 #173B3F
split-complementary
#2F173F #3B3F17 #173F1B
monochromatic
#110816 #110816 #2F173F #50276C #723899
Accessibility & contrast
On white
15.97
#2F173F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#2F173F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F173F
15.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F173F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F173F | 1.00 | 15.97 | 1.32 | 15.97 |
| #FFFFFF | 15.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A2140
Deuteranopia (green-blind)
#13223E
Tritanopia (blue-blind)
#2D1E28
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #2f173f; /* rgb */ color: rgb(47, 23, 63); /* oklch */ color: oklch(26.0% 0.076 309.8);
Tailwind
colors: {
custom: {
50: '#695574',
500: '#2f173f',
950: '#000000',
},
}SCSS
$custom: #2f173f; $custom-light: #695574; $custom-dark: #000000;
JSON
{
"hex": "#2f173f",
"rgb": {
"r": 47,
"g": 23,
"b": 63
},
"hsl": {
"h": 276,
"s": 46.512,
"l": 16.863
},
"oklch": {
"l": 0.25952,
"c": 0.07637,
"h": 309.8
},
"luminance": 0.01576
}Semantic roles & 50–950 ramp
primary
#2F173F
secondary
#53763C
accent
#D65287
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B