#2A197F#2A197F
#2A197F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.159 H 280.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2A197F |
|---|---|
| RGB | rgb(42, 25, 127) |
| HSL | hsl(250, 67%, 30%) |
| HSV | hsv(250, 80%, 50%) |
| CMYK | cmyk(66.9%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.88, 38.62, -54.17) |
| CIE-LCH | lch(18.88, 66.53, 305.49°) |
| OKLab | oklab(31.79% 0.0275 -0.1564) |
| OKLCH | oklch(31.79% 0.159 280) |
| XYZ | xyz(5.1320, 2.7194, 20.3290) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.21
Royal
#0C1793
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 4.06
Darkblue
#00008B
ΔE00 4.98
Navy
#000080
ΔE00 5.01
Dark Royal Blue
#02066F
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A197F #6E7F19
analogous
#193B7F #2A197F #5D197F
triadic
#2A197F #7F2A19 #197F2A
tetradic
#2A197F #7F193B #6E7F19 #197F5D
square
#2A197F #7F193B #6E7F19 #197F5D
split-complementary
#2A197F #7F5D19 #3B7F19
monochromatic
#08051A #190F4C #2A197F #3B23B2 #553AD8
Accessibility & contrast
On white
13.60
#2A197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A197F
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A197F | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a197f; /* rgb */ color: rgb(42, 25, 127); /* oklch */ color: oklch(31.8% 0.159 280.0);
Tailwind
colors: {
custom: {
50: '#7059a5',
500: '#2a197f',
950: '#000000',
},
}SCSS
$custom: #2a197f; $custom-light: #7059a5; $custom-dark: #000000;
JSON
{
"hex": "#2a197f",
"rgb": {
"r": 42,
"g": 25,
"b": 127
},
"hsl": {
"h": 250,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.31788,
"c": 0.15876,
"h": 280
},
"luminance": 0.0272
}Semantic roles & 50–950 ramp
primary
#2A197F
secondary
#A0B341
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F