#2A196C#2A196C
#2A196C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.134 H 284.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2A196C |
|---|---|
| RGB | rgb(42, 25, 108) |
| HSL | hsl(252, 62%, 26%) |
| HSV | hsv(252, 77%, 42%) |
| CMYK | cmyk(61.1%, 76.9%, 0%, 57.6%) |
| CIE-LAB | lab(16.84, 32.47, -45.30) |
| CIE-LCH | lch(16.84, 55.73, 305.63°) |
| OKLab | oklab(29.74% 0.0326 -0.1305) |
| OKLCH | oklch(29.74% 0.134 284) |
| XYZ | xyz(4.0084, 2.2700, 14.4114) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.53
Dark Indigo
#1F0954
ΔE00 4.91
Darkblue (survey)
#030764
ΔE00 5.12
Dark Royal Blue
#02066F
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 5.65
Deep Blue
#040273
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A196C #5B6C19
analogous
#19316C #2A196C #53196C
triadic
#2A196C #6C2A19 #196C2A
tetradic
#2A196C #6C1931 #5B6C19 #196C53
square
#2A196C #6C1931 #5B6C19 #196C53
split-complementary
#2A196C #6C5319 #316C19
monochromatic
#0A0619 #170D3A #2A196C #3D259E #5130CF
Accessibility & contrast
On white
14.44
#2A196C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2A196C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A196C
14.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A196C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A196C | 1.00 | 14.44 | 1.45 | 14.44 |
| #FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#053041
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2a196c; /* rgb */ color: rgb(42, 25, 108); /* oklch */ color: oklch(29.7% 0.134 284.0);
Tailwind
colors: {
custom: {
50: '#6c5897',
500: '#2a196c',
950: '#000000',
},
}SCSS
$custom: #2a196c; $custom-light: #6c5897; $custom-dark: #000000;
JSON
{
"hex": "#2a196c",
"rgb": {
"r": 42,
"g": 25,
"b": 108
},
"hsl": {
"h": 252.289,
"s": 62.406,
"l": 26.078
},
"oklch": {
"l": 0.29742,
"c": 0.13449,
"h": 284
},
"luminance": 0.0227
}Semantic roles & 50–950 ramp
primary
#2A196C
secondary
#8DA13F
accent
#E542C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E