#2D196E#2D196E
#2D196E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.137 H 285.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2D196E |
|---|---|
| RGB | rgb(45, 25, 110) |
| HSL | hsl(254, 63%, 26%) |
| HSV | hsv(254, 77%, 43%) |
| CMYK | cmyk(59.1%, 77.3%, 0%, 56.9%) |
| CIE-LAB | lab(17.36, 33.58, -45.74) |
| CIE-LCH | lch(17.36, 56.74, 306.28°) |
| OKLab | oklab(30.25% 0.0369 -0.1317) |
| OKLCH | oklch(30.25% 0.137 285.7) |
| XYZ | xyz(4.2434, 2.3787, 14.9844) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.91
Dark Indigo
#1F0954
ΔE00 5.19
Indigo (survey)
#380282
ΔE00 5.21
Dark Royal Blue
#02066F
ΔE00 5.36
Darkblue (survey)
#030764
ΔE00 5.42
Deep Blue
#040273
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D196E #5A6E19
analogous
#19306E #2D196E #58196E
triadic
#2D196E #6E2D19 #196E2D
tetradic
#2D196E #6E1930 #5A6E19 #196E58
square
#2D196E #6E1930 #5A6E19 #196E58
split-complementary
#2D196E #6E5819 #306E19
monochromatic
#0A0619 #190E3C #2D196E #4124A0 #5731D0
Accessibility & contrast
On white
14.23
#2D196E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2D196E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D196E
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D196E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D196E | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#0E3042
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2d196e; /* rgb */ color: rgb(45, 25, 110); /* oklch */ color: oklch(30.2% 0.137 285.7);
Tailwind
colors: {
custom: {
50: '#6e5898',
500: '#2d196e',
950: '#000000',
},
}SCSS
$custom: #2d196e; $custom-light: #6e5898; $custom-dark: #000000;
JSON
{
"hex": "#2d196e",
"rgb": {
"r": 45,
"g": 25,
"b": 110
},
"hsl": {
"h": 254.118,
"s": 62.963,
"l": 26.471
},
"oklch": {
"l": 0.30245,
"c": 0.13673,
"h": 285.7
},
"luminance": 0.02379
}Semantic roles & 50–950 ramp
primary
#2D196E
secondary
#8CA33F
accent
#E642BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E