#2A197E#2A197E
#2A197E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 280.1°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2A197E |
|---|---|
| RGB | rgb(42, 25, 126) |
| HSL | hsl(250, 67%, 30%) |
| HSV | hsv(250, 80%, 49%) |
| CMYK | cmyk(66.7%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(18.77, 38.30, -53.71) |
| CIE-LCH | lch(18.77, 65.97, 305.49°) |
| OKLab | oklab(31.68% 0.0278 -0.155) |
| OKLCH | oklch(31.68% 0.158 280.1) |
| XYZ | xyz(5.0672, 2.6935, 19.9875) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 4.09
Navy
#000080
ΔE00 5.04
Darkblue
#00008B
ΔE00 5.05
Dark Royal Blue
#02066F
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A197E #6D7E19
analogous
#193B7E #2A197E #5D197E
triadic
#2A197E #7E2A19 #197E2A
tetradic
#2A197E #7E193B #6D7E19 #197E5D
square
#2A197E #7E193B #6D7E19 #197E5D
split-complementary
#2A197E #7E5D19 #3B7E19
monochromatic
#09051A #190F4B #2A197E #3B23B1 #543AD8
Accessibility & contrast
On white
13.65
#2A197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A197E
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A197E | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a197e; /* rgb */ color: rgb(42, 25, 126); /* oklch */ color: oklch(31.7% 0.158 280.1);
Tailwind
colors: {
custom: {
50: '#7059a4',
500: '#2a197e',
950: '#000000',
},
}SCSS
$custom: #2a197e; $custom-light: #7059a4; $custom-dark: #000000;
JSON
{
"hex": "#2a197e",
"rgb": {
"r": 42,
"g": 25,
"b": 126
},
"hsl": {
"h": 250.099,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.31677,
"c": 0.15751,
"h": 280.1
},
"luminance": 0.02694
}Semantic roles & 50–950 ramp
primary
#2A197E
secondary
#9FB241
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F