#2A195E#2A195E
#2A195E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.116 H 288.0°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A195E |
|---|---|
| RGB | rgb(42, 25, 94) |
| HSL | hsl(255, 58%, 23%) |
| HSV | hsv(255, 73%, 37%) |
| CMYK | cmyk(55.3%, 73.4%, 0%, 63.1%) |
| CIE-LAB | lab(15.46, 27.86, -38.33) |
| CIE-LCH | lch(15.46, 47.38, 306.02°) |
| OKLab | oklab(28.34% 0.0357 -0.11) |
| OKLCH | oklch(28.34% 0.116 288) |
| XYZ | xyz(3.3223, 1.9955, 10.7976) |
| Luminance | 0.0200 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.85
Midnight Blue
#191970
ΔE00 4.49
Darkblue (survey)
#030764
ΔE00 6.04
Dark Blue
#00035B
ΔE00 6.54
Night Blue
#040348
ΔE00 6.69
Dark Royal Blue
#02066F
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A195E #4D5E19
analogous
#192A5E #2A195E #4C195E
triadic
#2A195E #5E2A19 #195E2A
tetradic
#2A195E #5E192A #4D5E19 #195E4C
square
#2A195E #5E192A #4D5E19 #195E4C
split-complementary
#2A195E #5E4C19 #2A5E19
monochromatic
#0B0618 #140C2E #2A195E #40268E #5533BF
Accessibility & contrast
On white
15.01
#2A195E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2A195E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A195E
15.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A195E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A195E | 1.00 | 15.01 | 1.40 | 15.01 |
| #FFFFFF | 15.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#172B39
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a195e; /* rgb */ color: rgb(42, 25, 94); /* oklch */ color: oklch(28.3% 0.116 288.0);
Tailwind
colors: {
custom: {
50: '#6a578c',
500: '#2a195e',
950: '#000000',
},
}SCSS
$custom: #2a195e; $custom-light: #6a578c; $custom-dark: #000000;
JSON
{
"hex": "#2a195e",
"rgb": {
"r": 42,
"g": 25,
"b": 94
},
"hsl": {
"h": 254.783,
"s": 57.983,
"l": 23.333
},
"oklch": {
"l": 0.28336,
"c": 0.11569,
"h": 288
},
"luminance": 0.01996
}Semantic roles & 50–950 ramp
primary
#2A195E
secondary
#7F943F
accent
#E147BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D