#2D163F#2D163F
#2D163F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.077 H 307.7°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2D163F |
|---|---|
| RGB | rgb(45, 22, 63) |
| HSL | hsl(274, 48%, 17%) |
| HSV | hsv(274, 65%, 25%) |
| CMYK | cmyk(28.6%, 65.1%, 0%, 75.3%) |
| CIE-LAB | lab(12.55, 20.86, -21.77) |
| CIE-LCH | lch(12.55, 30.15, 313.77°) |
| OKLab | oklab(25.5% 0.0474 -0.0613) |
| OKLCH | oklch(25.5% 0.077 307.7) |
| XYZ | xyz(2.2661, 1.4906, 4.8700) |
| Luminance | 0.0149 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 5.07
Midnight Purple
#280137
ΔE00 5.37
Very Dark Purple
#2A0134
ΔE00 5.45
Dark Violet
#34013F
ΔE00 5.98
Deep Purple
#36013F
ΔE00 6.13
Eggplant
#380835
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D163F #283F16
analogous
#19163F #2D163F #3F163D
triadic
#2D163F #3F2D16 #163F2D
tetradic
#2D163F #3F1916 #283F16 #163D3F
square
#2D163F #3F1916 #283F16 #163D3F
split-complementary
#2D163F #3D3F16 #163F19
monochromatic
#100817 #100817 #2D163F #4D266C #6E369A
Accessibility & contrast
On white
16.18
#2D163F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.30
#2D163F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D163F
16.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D163F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D163F | 1.00 | 16.18 | 1.30 | 16.18 |
| #FFFFFF | 16.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#10213E
Tritanopia (blue-blind)
#2A1E28
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #2d163f; /* rgb */ color: rgb(45, 22, 63); /* oklch */ color: oklch(25.5% 0.077 307.7);
Tailwind
colors: {
custom: {
50: '#675474',
500: '#2d163f',
950: '#000000',
},
}SCSS
$custom: #2d163f; $custom-light: #675474; $custom-dark: #000000;
JSON
{
"hex": "#2d163f",
"rgb": {
"r": 45,
"g": 22,
"b": 63
},
"hsl": {
"h": 273.659,
"s": 48.235,
"l": 16.667
},
"oklch": {
"l": 0.25495,
"c": 0.07746,
"h": 307.7
},
"luminance": 0.01491
}Semantic roles & 50–950 ramp
primary
#2D163F
secondary
#55763B
accent
#D8508C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B