#2F156B#2F156B
#2F156B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.137 H 288.9°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2F156B |
|---|---|
| RGB | rgb(47, 21, 107) |
| HSL | hsl(258, 67%, 25%) |
| HSV | hsv(258, 80%, 42%) |
| CMYK | cmyk(56.1%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(16.51, 35.12, -45.17) |
| CIE-LCH | lch(16.51, 57.21, 307.87°) |
| OKLab | oklab(29.61% 0.0444 -0.1299) |
| OKLCH | oklch(29.61% 0.137 288.9) |
| XYZ | xyz(4.0935, 2.2020, 14.1164) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.73
Dark Indigo
#1F0954
ΔE00 4.53
Indigo (survey)
#380282
ΔE00 4.84
Darkblue (survey)
#030764
ΔE00 5.26
Dark Royal Blue
#02066F
ΔE00 5.27
Deep Blue
#040273
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F156B #516B15
analogous
#15266B #2F156B #5A156B
triadic
#2F156B #6B2F15 #156B2F
tetradic
#2F156B #6B1526 #516B15 #156B5A
square
#2F156B #6B1526 #516B15 #156B5A
split-complementary
#2F156B #6B5A15 #266B15
monochromatic
#0B051A #190B38 #2F156B #451F9E #5C29D1
Accessibility & contrast
On white
14.58
#2F156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2F156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F156B
14.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F156B | 1.00 | 14.58 | 1.44 | 14.58 |
| #FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#172D3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2f156b; /* rgb */ color: rgb(47, 21, 107); /* oklch */ color: oklch(29.6% 0.137 288.9);
Tailwind
colors: {
custom: {
50: '#6f5696',
500: '#2f156b',
950: '#000000',
},
}SCSS
$custom: #2f156b; $custom-light: #6f5696; $custom-dark: #000000;
JSON
{
"hex": "#2f156b",
"rgb": {
"r": 47,
"g": 21,
"b": 107
},
"hsl": {
"h": 258.14,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.29609,
"c": 0.13724,
"h": 288.9
},
"luminance": 0.02202
}Semantic roles & 50–950 ramp
primary
#2F156B
secondary
#82A23A
accent
#EA3EB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E