#2D173F#2D173F
#2D173F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.076 H 307.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2D173F |
|---|---|
| RGB | rgb(45, 23, 63) |
| HSL | hsl(273, 47%, 17%) |
| HSV | hsv(273, 63%, 25%) |
| CMYK | cmyk(28.6%, 63.5%, 0%, 75.3%) |
| CIE-LAB | lab(12.79, 20.20, -21.38) |
| CIE-LCH | lch(12.79, 29.41, 313.38°) |
| OKLab | oklab(25.68% 0.0458 -0.0601) |
| OKLCH | oklch(25.68% 0.076 307.3) |
| XYZ | xyz(2.2856, 1.5296, 4.8765) |
| Luminance | 0.0153 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 5.41
Midnight Purple
#280137
ΔE00 5.73
Very Dark Purple
#2A0134
ΔE00 5.78
Dark Violet
#34013F
ΔE00 6.34
Eggplant
#380835
ΔE00 6.41
Deep Purple
#36013F
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D173F #293F17
analogous
#19173F #2D173F #3F173D
triadic
#2D173F #3F2D17 #173F2D
tetradic
#2D173F #3F1917 #293F17 #173D3F
square
#2D173F #3F1917 #293F17 #173D3F
split-complementary
#2D173F #3D3F17 #173F19
monochromatic
#100816 #100816 #2D173F #4D276C #6D3899
Accessibility & contrast
On white
16.08
#2D173F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#2D173F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D173F
16.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D173F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D173F | 1.00 | 16.08 | 1.31 | 16.08 |
| #FFFFFF | 16.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#092040
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#2A1E28
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #2d173f; /* rgb */ color: rgb(45, 23, 63); /* oklch */ color: oklch(25.7% 0.076 307.3);
Tailwind
colors: {
custom: {
50: '#675574',
500: '#2d173f',
950: '#000000',
},
}SCSS
$custom: #2d173f; $custom-light: #675574; $custom-dark: #000000;
JSON
{
"hex": "#2d173f",
"rgb": {
"r": 45,
"g": 23,
"b": 63
},
"hsl": {
"h": 273,
"s": 46.512,
"l": 16.863
},
"oklch": {
"l": 0.25676,
"c": 0.07559,
"h": 307.3
},
"luminance": 0.0153
}Semantic roles & 50–950 ramp
primary
#2D173F
secondary
#56763C
accent
#D6528D
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B