#2A196F#2A196F
#2A196F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.138 H 283.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2A196F |
|---|---|
| RGB | rgb(42, 25, 111) |
| HSL | hsl(252, 63%, 27%) |
| HSV | hsv(252, 77%, 44%) |
| CMYK | cmyk(62.2%, 77.5%, 0%, 56.5%) |
| CIE-LAB | lab(17.15, 33.45, -46.74) |
| CIE-LCH | lch(17.15, 57.48, 305.59°) |
| OKLab | oklab(30.06% 0.0319 -0.1347) |
| OKLCH | oklch(30.06% 0.138 283.3) |
| XYZ | xyz(4.1708, 2.3349, 15.2667) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.36
Dark Royal Blue
#02066F
ΔE00 5.00
Darkblue (survey)
#030764
ΔE00 5.12
Indigo (survey)
#380282
ΔE00 5.28
Dark Indigo
#1F0954
ΔE00 5.29
Deep Blue
#040273
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A196F #5E6F19
analogous
#19336F #2A196F #55196F
triadic
#2A196F #6F2A19 #196F2A
tetradic
#2A196F #6F1933 #5E6F19 #196F55
square
#2A196F #6F1933 #5E6F19 #196F55
split-complementary
#2A196F #6F5519 #336F19
monochromatic
#090619 #170E3D #2A196F #3D24A1 #5132D1
Accessibility & contrast
On white
14.31
#2A196F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2A196F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A196F
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A196F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A196F | 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)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2a196f; /* rgb */ color: rgb(42, 25, 111); /* oklch */ color: oklch(30.1% 0.138 283.3);
Tailwind
colors: {
custom: {
50: '#6d5899',
500: '#2a196f',
950: '#000000',
},
}SCSS
$custom: #2a196f; $custom-light: #6d5899; $custom-dark: #000000;
JSON
{
"hex": "#2a196f",
"rgb": {
"r": 42,
"g": 25,
"b": 111
},
"hsl": {
"h": 251.86,
"s": 63.235,
"l": 26.667
},
"oklch": {
"l": 0.30056,
"c": 0.13841,
"h": 283.3
},
"luminance": 0.02335
}Semantic roles & 50–950 ramp
primary
#2A196F
secondary
#90A43F
accent
#E642C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E