#2F153F#2F153F
#2F153F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.080 H 310.5°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F153F |
|---|---|
| RGB | rgb(47, 21, 63) |
| HSL | hsl(277, 50%, 16%) |
| HSV | hsv(277, 67%, 25%) |
| CMYK | cmyk(25.4%, 66.7%, 0%, 75.3%) |
| CIE-LAB | lab(12.61, 22.10, -21.66) |
| CIE-LCH | lch(12.61, 30.95, 315.58°) |
| OKLab | oklab(25.6% 0.0521 -0.0609) |
| OKLCH | oklch(25.6% 0.08 310.5) |
| XYZ | xyz(2.3375, 1.4996, 4.8680) |
| Luminance | 0.0150 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 4.38
Very Dark Purple
#2A0134
ΔE00 4.94
Midnight Purple
#280137
ΔE00 4.96
Dark Violet
#34013F
ΔE00 5.35
Deep Purple
#36013F
ΔE00 5.46
Eggplant
#380835
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F153F #253F15
analogous
#1A153F #2F153F #3F153A
triadic
#2F153F #3F2F15 #153F2F
tetradic
#2F153F #3F1A15 #253F15 #153A3F
square
#2F153F #3F1A15 #253F15 #153A3F
split-complementary
#2F153F #3A3F15 #153F1A
monochromatic
#110817 #110817 #2F153F #51246D #73349B
Accessibility & contrast
On white
16.15
#2F153F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.30
#2F153F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F153F
16.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F153F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F153F | 1.00 | 16.15 | 1.30 | 16.15 |
| #FFFFFF | 16.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#2D1D27
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #2f153f; /* rgb */ color: rgb(47, 21, 63); /* oklch */ color: oklch(25.6% 0.080 310.5);
Tailwind
colors: {
custom: {
50: '#695474',
500: '#2f153f',
950: '#000000',
},
}SCSS
$custom: #2f153f; $custom-light: #695474; $custom-dark: #000000;
JSON
{
"hex": "#2f153f",
"rgb": {
"r": 47,
"g": 21,
"b": 63
},
"hsl": {
"h": 277.143,
"s": 50,
"l": 16.471
},
"oklch": {
"l": 0.25602,
"c": 0.08011,
"h": 310.5
},
"luminance": 0.015
}Semantic roles & 50–950 ramp
primary
#2F153F
secondary
#517739
accent
#DA4E83
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B