#2F176B#2F176B
#2F176B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.135 H 288.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F176B |
|---|---|
| RGB | rgb(47, 23, 107) |
| HSL | hsl(257, 65%, 25%) |
| HSV | hsv(257, 79%, 42%) |
| CMYK | cmyk(56.1%, 78.5%, 0%, 58%) |
| CIE-LAB | lab(16.89, 34.06, -44.56) |
| CIE-LCH | lch(16.89, 56.08, 307.39°) |
| OKLab | oklab(29.87% 0.0427 -0.1281) |
| OKLCH | oklch(29.87% 0.135 288.4) |
| XYZ | xyz(4.1317, 2.2785, 14.1291) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.57
Dark Indigo
#1F0954
ΔE00 4.69
Indigo (survey)
#380282
ΔE00 5.16
Darkblue (survey)
#030764
ΔE00 5.46
Dark Royal Blue
#02066F
ΔE00 5.51
Deep Blue
#040273
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F176B #536B17
analogous
#17296B #2F176B #59176B
triadic
#2F176B #6B2F17 #176B2F
tetradic
#2F176B #6B1729 #536B17 #176B59
square
#2F176B #6B1729 #536B17 #176B59
split-complementary
#2F176B #6B5917 #296B17
monochromatic
#0B0519 #190C39 #2F176B #45229D #5B2DD0
Accessibility & contrast
On white
14.43
#2F176B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F176B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F176B
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F176B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F176B | 1.00 | 14.43 | 1.46 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#172E40
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f176b; /* rgb */ color: rgb(47, 23, 107); /* oklch */ color: oklch(29.9% 0.135 288.4);
Tailwind
colors: {
custom: {
50: '#6f5796',
500: '#2f176b',
950: '#000000',
},
}SCSS
$custom: #2f176b; $custom-light: #6f5796; $custom-dark: #000000;
JSON
{
"hex": "#2f176b",
"rgb": {
"r": 47,
"g": 23,
"b": 107
},
"hsl": {
"h": 257.143,
"s": 64.615,
"l": 25.49
},
"oklch": {
"l": 0.2987,
"c": 0.13503,
"h": 288.4
},
"luminance": 0.02279
}Semantic roles & 50–950 ramp
primary
#2F176B
secondary
#84A13D
accent
#E840B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E