#2F164F#2F164F
#2F164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.100 H 299.9°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2F164F |
|---|---|
| RGB | rgb(47, 22, 79) |
| HSL | hsl(266, 56%, 20%) |
| HSV | hsv(266, 72%, 31%) |
| CMYK | cmyk(40.5%, 72.2%, 0%, 69%) |
| CIE-LAB | lab(14.07, 26.07, -30.43) |
| CIE-LCH | lch(14.07, 40.07, 310.59°) |
| OKLab | oklab(27.06% 0.0497 -0.0866) |
| OKLCH | oklch(27.06% 0.1 299.9) |
| XYZ | xyz(2.8701, 1.7426, 7.5808) |
| Luminance | 0.0174 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.93
Dark Purple
#35063E
ΔE00 5.85
Dark Violet
#34013F
ΔE00 6.03
Midnight Purple
#280137
ΔE00 6.09
Deep Purple
#36013F
ΔE00 6.32
Very Dark Purple
#2A0134
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F164F #364F16
analogous
#16194F #2F164F #4C164F
triadic
#2F164F #4F2F16 #164F2F
tetradic
#2F164F #4F1619 #364F16 #164F4C
square
#2F164F #4F1619 #364F16 #164F4C
split-complementary
#2F164F #4F4C16 #194F16
monochromatic
#0E0718 #13091F #2F164F #4B237F #6831AF
Accessibility & contrast
On white
15.57
#2F164F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2F164F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F164F
15.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F164F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F164F | 1.00 | 15.57 | 1.35 | 15.57 |
| #FFFFFF | 15.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#282330
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2f164f; /* rgb */ color: rgb(47, 22, 79); /* oklch */ color: oklch(27.1% 0.100 299.9);
Tailwind
colors: {
custom: {
50: '#6b5581',
500: '#2f164f',
950: '#000000',
},
}SCSS
$custom: #2f164f; $custom-light: #6b5581; $custom-dark: #000000;
JSON
{
"hex": "#2f164f",
"rgb": {
"r": 47,
"g": 22,
"b": 79
},
"hsl": {
"h": 266.316,
"s": 56.436,
"l": 19.804
},
"oklch": {
"l": 0.27062,
"c": 0.09988,
"h": 299.9
},
"luminance": 0.01743
}Semantic roles & 50–950 ramp
primary
#2F164F
secondary
#65863A
accent
#E0489D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C