#2F166B#2F166B
#2F166B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.136 H 288.6°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2F166B |
|---|---|
| RGB | rgb(47, 22, 107) |
| HSL | hsl(258, 66%, 25%) |
| HSV | hsv(258, 79%, 42%) |
| CMYK | cmyk(56.1%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(16.70, 34.59, -44.87) |
| CIE-LCH | lch(16.70, 56.65, 307.64°) |
| OKLab | oklab(29.74% 0.0435 -0.129) |
| OKLCH | oklch(29.74% 0.136 288.6) |
| XYZ | xyz(4.1123, 2.2395, 14.1227) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.65
Dark Indigo
#1F0954
ΔE00 4.60
Indigo (survey)
#380282
ΔE00 4.99
Darkblue (survey)
#030764
ΔE00 5.35
Dark Royal Blue
#02066F
ΔE00 5.39
Deep Blue
#040273
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F166B #526B16
analogous
#16286B #2F166B #59166B
triadic
#2F166B #6B2F16 #166B2F
tetradic
#2F166B #6B1628 #526B16 #166B59
square
#2F166B #6B1628 #526B16 #166B59
split-complementary
#2F166B #6B5916 #286B16
monochromatic
#0B0519 #190C38 #2F166B #45209E #5C2BD1
Accessibility & contrast
On white
14.50
#2F166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2F166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F166B
14.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F166B | 1.00 | 14.50 | 1.45 | 14.50 |
| #FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#172E3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f166b; /* rgb */ color: rgb(47, 22, 107); /* oklch */ color: oklch(29.7% 0.136 288.6);
Tailwind
colors: {
custom: {
50: '#6f5696',
500: '#2f166b',
950: '#000000',
},
}SCSS
$custom: #2f166b; $custom-light: #6f5696; $custom-dark: #000000;
JSON
{
"hex": "#2f166b",
"rgb": {
"r": 47,
"g": 22,
"b": 107
},
"hsl": {
"h": 257.647,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.29737,
"c": 0.13615,
"h": 288.6
},
"luminance": 0.0224
}Semantic roles & 50–950 ramp
primary
#2F166B
secondary
#83A13B
accent
#E93FB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E