#2A196E#2A196E
#2A196E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 283.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2A196E |
|---|---|
| RGB | rgb(42, 25, 110) |
| HSL | hsl(252, 63%, 26%) |
| HSV | hsv(252, 77%, 43%) |
| CMYK | cmyk(61.8%, 77.3%, 0%, 56.9%) |
| CIE-LAB | lab(17.05, 33.12, -46.26) |
| CIE-LCH | lch(17.05, 56.90, 305.60°) |
| OKLab | oklab(29.95% 0.0321 -0.1333) |
| OKLCH | oklch(29.95% 0.137 283.5) |
| XYZ | xyz(4.1161, 2.3130, 14.9784) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.40
Dark Royal Blue
#02066F
ΔE00 5.06
Darkblue (survey)
#030764
ΔE00 5.11
Dark Indigo
#1F0954
ΔE00 5.16
Indigo (survey)
#380282
ΔE00 5.40
Deep Blue
#040273
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A196E #5D6E19
analogous
#19336E #2A196E #55196E
triadic
#2A196E #6E2A19 #196E2A
tetradic
#2A196E #6E1933 #5D6E19 #196E55
square
#2A196E #6E1933 #5D6E19 #196E55
split-complementary
#2A196E #6E5519 #336E19
monochromatic
#0A0619 #170E3C #2A196E #3D24A0 #5131D0
Accessibility & contrast
On white
14.36
#2A196E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2A196E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A196E
14.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A196E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A196E | 1.00 | 14.36 | 1.46 | 14.36 |
| #FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#013142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2a196e; /* rgb */ color: rgb(42, 25, 110); /* oklch */ color: oklch(30.0% 0.137 283.5);
Tailwind
colors: {
custom: {
50: '#6d5898',
500: '#2a196e',
950: '#000000',
},
}SCSS
$custom: #2a196e; $custom-light: #6d5898; $custom-dark: #000000;
JSON
{
"hex": "#2a196e",
"rgb": {
"r": 42,
"g": 25,
"b": 110
},
"hsl": {
"h": 252,
"s": 62.963,
"l": 26.471
},
"oklch": {
"l": 0.29951,
"c": 0.13711,
"h": 283.5
},
"luminance": 0.02313
}Semantic roles & 50–950 ramp
primary
#2A196E
secondary
#8FA33F
accent
#E642C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E