#2D197F#2D197F
#2D197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 281.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2D197F |
|---|---|
| RGB | rgb(45, 25, 127) |
| HSL | hsl(252, 67%, 30%) |
| HSV | hsv(252, 80%, 50%) |
| CMYK | cmyk(64.6%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.16, 38.97, -53.70) |
| CIE-LCH | lch(19.16, 66.35, 305.97°) |
| OKLab | oklab(32.05% 0.0321 -0.1549) |
| OKLCH | oklch(32.05% 0.158 281.7) |
| XYZ | xyz(5.2594, 2.7851, 20.3350) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 3.82
Royal
#0C1793
ΔE00 3.94
Darkblue
#00008B
ΔE00 5.16
Navy
#000080
ΔE00 5.21
Dark Royal Blue
#02066F
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D197F #6B7F19
analogous
#19387F #2D197F #60197F
triadic
#2D197F #7F2D19 #197F2D
tetradic
#2D197F #7F1938 #6B7F19 #197F60
square
#2D197F #7F1938 #6B7F19 #197F60
split-complementary
#2D197F #7F6019 #387F19
monochromatic
#09051A #1B0F4C #2D197F #3F23B2 #593AD8
Accessibility & contrast
On white
13.49
#2D197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2D197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D197F
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D197F | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d197f; /* rgb */ color: rgb(45, 25, 127); /* oklch */ color: oklch(32.1% 0.158 281.7);
Tailwind
colors: {
custom: {
50: '#7259a5',
500: '#2d197f',
950: '#000000',
},
}SCSS
$custom: #2d197f; $custom-light: #7259a5; $custom-dark: #000000;
JSON
{
"hex": "#2d197f",
"rgb": {
"r": 45,
"g": 25,
"b": 127
},
"hsl": {
"h": 251.765,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.32051,
"c": 0.1582,
"h": 281.7
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#2D197F
secondary
#9DB341
accent
#EA3EC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F