#2F176D#2F176D
#2F176D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.138 H 287.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2F176D |
|---|---|
| RGB | rgb(47, 23, 109) |
| HSL | hsl(257, 65%, 26%) |
| HSV | hsv(257, 79%, 43%) |
| CMYK | cmyk(56.9%, 78.9%, 0%, 57.3%) |
| CIE-LAB | lab(17.09, 34.68, -45.53) |
| CIE-LCH | lch(17.09, 57.23, 307.30°) |
| OKLab | oklab(30.08% 0.0421 -0.1309) |
| OKLCH | oklch(30.08% 0.138 287.8) |
| XYZ | xyz(4.2382, 2.3210, 14.6897) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.43
Indigo (survey)
#380282
ΔE00 4.88
Dark Indigo
#1F0954
ΔE00 4.93
Dark Royal Blue
#02066F
ΔE00 5.37
Darkblue (survey)
#030764
ΔE00 5.43
Deep Blue
#040273
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F176D #556D17
analogous
#172A6D #2F176D #5A176D
triadic
#2F176D #6D2F17 #176D2F
tetradic
#2F176D #6D172A #556D17 #176D5A
square
#2F176D #6D172A #556D17 #176D5A
split-complementary
#2F176D #6D5A17 #2A6D17
monochromatic
#0B0519 #190C3A #2F176D #4522A0 #5B2CD2
Accessibility & contrast
On white
14.34
#2F176D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F176D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F176D
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F176D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F176D | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#152F41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f176d; /* rgb */ color: rgb(47, 23, 109); /* oklch */ color: oklch(30.1% 0.138 287.8);
Tailwind
colors: {
custom: {
50: '#6f5798',
500: '#2f176d',
950: '#000000',
},
}SCSS
$custom: #2f176d; $custom-light: #6f5798; $custom-dark: #000000;
JSON
{
"hex": "#2f176d",
"rgb": {
"r": 47,
"g": 23,
"b": 109
},
"hsl": {
"h": 256.744,
"s": 65.152,
"l": 25.882
},
"oklch": {
"l": 0.30075,
"c": 0.13755,
"h": 287.8
},
"luminance": 0.02321
}Semantic roles & 50–950 ramp
primary
#2F176D
secondary
#86A33D
accent
#E840B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E