#2A196B#2A196B
#2A196B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 284.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2A196B |
|---|---|
| RGB | rgb(42, 25, 107) |
| HSL | hsl(252, 62%, 26%) |
| HSV | hsv(252, 77%, 42%) |
| CMYK | cmyk(60.7%, 76.6%, 0%, 58%) |
| CIE-LAB | lab(16.74, 32.14, -44.81) |
| CIE-LCH | lch(16.74, 55.15, 305.65°) |
| OKLab | oklab(29.64% 0.0329 -0.129) |
| OKLCH | oklch(29.64% 0.133 284.3) |
| XYZ | xyz(3.9555, 2.2488, 14.1327) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Dark Indigo
#1F0954
ΔE00 4.80
Darkblue (survey)
#030764
ΔE00 5.13
Dark Royal Blue
#02066F
ΔE00 5.25
Deep Blue
#040273
ΔE00 5.77
Indigo (survey)
#380282
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A196B #5A6B19
analogous
#19316B #2A196B #53196B
triadic
#2A196B #6B2A19 #196B2A
tetradic
#2A196B #6B1931 #5A6B19 #196B53
square
#2A196B #6B1931 #5A6B19 #196B53
split-complementary
#2A196B #6B5319 #316B19
monochromatic
#0A0619 #170D39 #2A196B #3D259D #5130CE
Accessibility & contrast
On white
14.48
#2A196B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2A196B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A196B
14.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A196B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A196B | 1.00 | 14.48 | 1.45 | 14.48 |
| #FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#072F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a196b; /* rgb */ color: rgb(42, 25, 107); /* oklch */ color: oklch(29.6% 0.133 284.3);
Tailwind
colors: {
custom: {
50: '#6c5896',
500: '#2a196b',
950: '#000000',
},
}SCSS
$custom: #2a196b; $custom-light: #6c5896; $custom-dark: #000000;
JSON
{
"hex": "#2a196b",
"rgb": {
"r": 42,
"g": 25,
"b": 107
},
"hsl": {
"h": 252.439,
"s": 62.121,
"l": 25.882
},
"oklch": {
"l": 0.29639,
"c": 0.13317,
"h": 284.3
},
"luminance": 0.02249
}Semantic roles & 50–950 ramp
primary
#2A196B
secondary
#8CA13F
accent
#E543C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E