#2F196F#2F196F
#2F196F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.138 H 286.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2F196F |
|---|---|
| RGB | rgb(47, 25, 111) |
| HSL | hsl(255, 63%, 27%) |
| HSV | hsv(255, 77%, 44%) |
| CMYK | cmyk(57.7%, 77.5%, 0%, 56.5%) |
| CIE-LAB | lab(17.68, 34.21, -45.86) |
| CIE-LCH | lch(17.68, 57.21, 306.72°) |
| OKLab | oklab(30.55% 0.0398 -0.132) |
| OKLCH | oklch(30.55% 0.138 286.8) |
| XYZ | xyz(4.3883, 2.4471, 15.2769) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 4.98
Dark Indigo
#1F0954
ΔE00 5.37
Dark Royal Blue
#02066F
ΔE00 5.52
Darkblue (survey)
#030764
ΔE00 5.66
Deep Blue
#040273
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F196F #596F19
analogous
#192E6F #2F196F #5A196F
triadic
#2F196F #6F2F19 #196F2F
tetradic
#2F196F #6F192E #596F19 #196F5A
square
#2F196F #6F192E #596F19 #196F5A
split-complementary
#2F196F #6F5A19 #2E6F19
monochromatic
#0B0619 #1A0E3D #2F196F #4424A1 #5A32D1
Accessibility & contrast
On white
14.10
#2F196F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2F196F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F196F
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F196F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F196F | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#133142
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2f196f; /* rgb */ color: rgb(47, 25, 111); /* oklch */ color: oklch(30.6% 0.138 286.8);
Tailwind
colors: {
custom: {
50: '#705899',
500: '#2f196f',
950: '#000000',
},
}SCSS
$custom: #2f196f; $custom-light: #705899; $custom-dark: #000000;
JSON
{
"hex": "#2f196f",
"rgb": {
"r": 47,
"g": 25,
"b": 111
},
"hsl": {
"h": 255.349,
"s": 63.235,
"l": 26.667
},
"oklch": {
"l": 0.30551,
"c": 0.13784,
"h": 286.8
},
"luminance": 0.02447
}Semantic roles & 50–950 ramp
primary
#2F196F
secondary
#8BA43F
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E