#2A175C#2A175C
#2A175C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.116 H 289.3°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2A175C |
|---|---|
| RGB | rgb(42, 23, 92) |
| HSL | hsl(257, 60%, 23%) |
| HSV | hsv(257, 75%, 36%) |
| CMYK | cmyk(54.3%, 75%, 0%, 63.9%) |
| CIE-LAB | lab(14.83, 28.43, -38.02) |
| CIE-LCH | lch(14.83, 47.48, 306.79°) |
| OKLab | oklab(27.83% 0.0382 -0.1091) |
| OKLCH | oklch(27.83% 0.116 289.3) |
| XYZ | xyz(3.1924, 1.8776, 10.3173) |
| Luminance | 0.0188 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.37
Midnight Blue
#191970
ΔE00 4.83
Darkblue (survey)
#030764
ΔE00 5.94
Dark Blue
#00035B
ΔE00 6.32
Night Blue
#040348
ΔE00 6.39
Dark Royal Blue
#02066F
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A175C #495C17
analogous
#17265C #2A175C #4D175C
triadic
#2A175C #5C2A17 #175C2A
tetradic
#2A175C #5C1726 #495C17 #175C4D
square
#2A175C #5C1726 #495C17 #175C4D
split-complementary
#2A175C #5C4D17 #265C17
monochromatic
#0B0618 #140B2B #2A175C #40238D #572FBE
Accessibility & contrast
On white
15.27
#2A175C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2A175C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A175C
15.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A175C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A175C | 1.00 | 15.27 | 1.38 | 15.27 |
| #FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#182937
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2a175c; /* rgb */ color: rgb(42, 23, 92); /* oklch */ color: oklch(27.8% 0.116 289.3);
Tailwind
colors: {
custom: {
50: '#69568b',
500: '#2a175c',
950: '#000000',
},
}SCSS
$custom: #2a175c; $custom-light: #69568b; $custom-dark: #000000;
JSON
{
"hex": "#2a175c",
"rgb": {
"r": 42,
"g": 23,
"b": 92
},
"hsl": {
"h": 256.522,
"s": 60,
"l": 22.549
},
"oklch": {
"l": 0.27825,
"c": 0.11563,
"h": 289.3
},
"luminance": 0.01878
}Semantic roles & 50–950 ramp
primary
#2A175C
secondary
#7B933C
accent
#E345B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D