#2A195B#2A195B
#2A195B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 289.0°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2A195B |
|---|---|
| RGB | rgb(42, 25, 91) |
| HSL | hsl(255, 57%, 23%) |
| HSV | hsv(255, 73%, 36%) |
| CMYK | cmyk(53.8%, 72.5%, 0%, 64.3%) |
| CIE-LAB | lab(15.18, 26.88, -36.78) |
| CIE-LCH | lch(15.18, 45.55, 306.16°) |
| OKLab | oklab(28.05% 0.0362 -0.1055) |
| OKLCH | oklch(28.05% 0.112 289) |
| XYZ | xyz(3.1903, 1.9427, 10.1024) |
| Luminance | 0.0194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.87
Midnight Blue
#191970
ΔE00 5.06
Darkblue (survey)
#030764
ΔE00 6.43
Night Blue
#040348
ΔE00 6.62
Dark Blue
#00035B
ΔE00 6.80
Navy Blue (survey)
#001146
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A195B #4A5B19
analogous
#19295B #2A195B #4B195B
triadic
#2A195B #5B2A19 #195B2A
tetradic
#2A195B #5B1929 #4A5B19 #195B4B
square
#2A195B #5B1929 #4A5B19 #195B4B
split-complementary
#2A195B #5B4B19 #295B19
monochromatic
#0B0718 #140C2B #2A195B #40268B #5633BB
Accessibility & contrast
On white
15.12
#2A195B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2A195B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A195B
15.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A195B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A195B | 1.00 | 15.12 | 1.39 | 15.12 |
| #FFFFFF | 15.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#192A37
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2a195b; /* rgb */ color: rgb(42, 25, 91); /* oklch */ color: oklch(28.0% 0.112 289.0);
Tailwind
colors: {
custom: {
50: '#69578a',
500: '#2a195b',
950: '#000000',
},
}SCSS
$custom: #2a195b; $custom-light: #69578a; $custom-dark: #000000;
JSON
{
"hex": "#2a195b",
"rgb": {
"r": 42,
"g": 25,
"b": 91
},
"hsl": {
"h": 255.455,
"s": 56.897,
"l": 22.745
},
"oklch": {
"l": 0.28048,
"c": 0.11154,
"h": 289
},
"luminance": 0.01943
}Semantic roles & 50–950 ramp
primary
#2A195B
secondary
#7C913F
accent
#E048B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D