#2D196C#2D196C
#2D196C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 286.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2D196C |
|---|---|
| RGB | rgb(45, 25, 108) |
| HSL | hsl(254, 62%, 26%) |
| HSV | hsv(254, 77%, 42%) |
| CMYK | cmyk(58.3%, 76.9%, 0%, 57.6%) |
| CIE-LAB | lab(17.16, 32.94, -44.77) |
| CIE-LCH | lch(17.16, 55.58, 306.35°) |
| OKLab | oklab(30.04% 0.0374 -0.1288) |
| OKLCH | oklch(30.04% 0.134 286.2) |
| XYZ | xyz(4.1358, 2.3356, 14.4173) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Dark Indigo
#1F0954
ΔE00 4.95
Darkblue (survey)
#030764
ΔE00 5.44
Indigo (survey)
#380282
ΔE00 5.47
Dark Royal Blue
#02066F
ΔE00 5.49
Deep Blue
#040273
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D196C #586C19
analogous
#192E6C #2D196C #56196C
triadic
#2D196C #6C2D19 #196C2D
tetradic
#2D196C #6C192E #586C19 #196C56
square
#2D196C #6C192E #586C19 #196C56
split-complementary
#2D196C #6C5619 #2E6C19
monochromatic
#0A0619 #180D3A #2D196C #42259E #5730CF
Accessibility & contrast
On white
14.31
#2D196C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2D196C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D196C
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D196C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D196C | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#103041
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2d196c; /* rgb */ color: rgb(45, 25, 108); /* oklch */ color: oklch(30.0% 0.134 286.2);
Tailwind
colors: {
custom: {
50: '#6e5897',
500: '#2d196c',
950: '#000000',
},
}SCSS
$custom: #2d196c; $custom-light: #6e5897; $custom-dark: #000000;
JSON
{
"hex": "#2d196c",
"rgb": {
"r": 45,
"g": 25,
"b": 108
},
"hsl": {
"h": 254.458,
"s": 62.406,
"l": 26.078
},
"oklch": {
"l": 0.3004,
"c": 0.13414,
"h": 286.2
},
"luminance": 0.02336
}Semantic roles & 50–950 ramp
primary
#2D196C
secondary
#8AA13F
accent
#E542BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E