#2F186B#2F186B
#2F186B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 288.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F186B |
|---|---|
| RGB | rgb(47, 24, 107) |
| HSL | hsl(257, 63%, 26%) |
| HSV | hsv(257, 78%, 42%) |
| CMYK | cmyk(56.1%, 77.6%, 0%, 58%) |
| CIE-LAB | lab(17.08, 33.51, -44.24) |
| CIE-LCH | lch(17.08, 55.50, 307.14°) |
| OKLab | oklab(30.01% 0.0418 -0.1272) |
| OKLCH | oklch(30.01% 0.134 288.2) |
| XYZ | xyz(4.1520, 2.3189, 14.1359) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.51
Dark Indigo
#1F0954
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 5.33
Darkblue (survey)
#030764
ΔE00 5.58
Dark Royal Blue
#02066F
ΔE00 5.65
Deep Blue
#040273
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F186B #546B18
analogous
#182A6B #2F186B #58186B
triadic
#2F186B #6B2F18 #186B2F
tetradic
#2F186B #6B182A #546B18 #186B58
square
#2F186B #6B182A #546B18 #186B58
split-complementary
#2F186B #6B5818 #2A6B18
monochromatic
#0B0619 #190D39 #2F186B #45239D #5B2ECF
Accessibility & contrast
On white
14.35
#2F186B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2F186B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F186B
14.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F186B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F186B | 1.00 | 14.35 | 1.46 | 14.35 |
| #FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#172F40
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2f186b; /* rgb */ color: rgb(47, 24, 107); /* oklch */ color: oklch(30.0% 0.134 288.2);
Tailwind
colors: {
custom: {
50: '#6f5796',
500: '#2f186b',
950: '#000000',
},
}SCSS
$custom: #2f186b; $custom-light: #6f5796; $custom-dark: #000000;
JSON
{
"hex": "#2f186b",
"rgb": {
"r": 47,
"g": 24,
"b": 107
},
"hsl": {
"h": 256.627,
"s": 63.359,
"l": 25.686
},
"oklch": {
"l": 0.30006,
"c": 0.13388,
"h": 288.2
},
"luminance": 0.02319
}Semantic roles & 50–950 ramp
primary
#2F186B
secondary
#85A13E
accent
#E641B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E