#2F196B#2F196B
#2F196B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.133 H 287.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F196B |
|---|---|
| RGB | rgb(47, 25, 107) |
| HSL | hsl(256, 62%, 26%) |
| HSV | hsv(256, 77%, 42%) |
| CMYK | cmyk(56.1%, 76.6%, 0%, 58%) |
| CIE-LAB | lab(17.28, 32.95, -43.91) |
| CIE-LCH | lch(17.28, 54.90, 306.88°) |
| OKLab | oklab(30.15% 0.0409 -0.1262) |
| OKLCH | oklch(30.15% 0.133 287.9) |
| XYZ | xyz(4.1730, 2.3609, 14.1429) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.47
Dark Indigo
#1F0954
ΔE00 4.90
Indigo (survey)
#380282
ΔE00 5.51
Darkblue (survey)
#030764
ΔE00 5.70
Dark Royal Blue
#02066F
ΔE00 5.79
Deep Blue
#040273
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F196B #556B19
analogous
#192C6B #2F196B #58196B
triadic
#2F196B #6B2F19 #196B2F
tetradic
#2F196B #6B192C #556B19 #196B58
square
#2F196B #6B192C #556B19 #196B58
split-complementary
#2F196B #6B5819 #2C6B19
monochromatic
#0B0619 #190D39 #2F196B #45259D #5B30CE
Accessibility & contrast
On white
14.26
#2F196B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2F196B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F196B
14.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F196B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F196B | 1.00 | 14.26 | 1.47 | 14.26 |
| #FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.26 | 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: #2f196b; /* rgb */ color: rgb(47, 25, 107); /* oklch */ color: oklch(30.1% 0.133 287.9);
Tailwind
colors: {
custom: {
50: '#6f5896',
500: '#2f196b',
950: '#000000',
},
}SCSS
$custom: #2f196b; $custom-light: #6f5896; $custom-dark: #000000;
JSON
{
"hex": "#2f196b",
"rgb": {
"r": 47,
"g": 25,
"b": 107
},
"hsl": {
"h": 256.098,
"s": 62.121,
"l": 25.882
},
"oklch": {
"l": 0.30146,
"c": 0.13269,
"h": 287.9
},
"luminance": 0.02361
}Semantic roles & 50–950 ramp
primary
#2F196B
secondary
#86A13F
accent
#E543BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E