#2A115F#2A115F
#2A115F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.127 H 289.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A115F |
|---|---|
| RGB | rgb(42, 17, 95) |
| HSL | hsl(259, 70%, 22%) |
| HSV | hsv(259, 82%, 37%) |
| CMYK | cmyk(55.8%, 82.1%, 0%, 62.7%) |
| CIE-LAB | lab(13.94, 32.75, -41.49) |
| CIE-LCH | lch(13.94, 52.86, 308.28°) |
| OKLab | oklab(27.29% 0.043 -0.1193) |
| OKLCH | oklch(27.29% 0.127 289.8) |
| XYZ | xyz(3.2203, 1.7192, 10.9864) |
| Luminance | 0.0172 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.54
Midnight Blue
#191970
ΔE00 4.63
Darkblue (survey)
#030764
ΔE00 4.85
Dark Blue
#00035B
ΔE00 5.25
Dark Royal Blue
#02066F
ΔE00 5.53
Deep Blue
#040273
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A115F #465F11
analogous
#111F5F #2A115F #51115F
triadic
#2A115F #5F2A11 #115F2A
tetradic
#2A115F #5F111F #465F11 #115F51
square
#2A115F #5F111F #465F11 #115F51
split-complementary
#2A115F #5F5111 #1F5F11
monochromatic
#0B051A #13082B #2A115F #411A93 #5824C7
Accessibility & contrast
On white
15.63
#2A115F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.34
#2A115F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A115F
15.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A115F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A115F | 1.00 | 15.63 | 1.34 | 15.63 |
| #FFFFFF | 15.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#162737
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2a115f; /* rgb */ color: rgb(42, 17, 95); /* oklch */ color: oklch(27.3% 0.127 289.8);
Tailwind
colors: {
custom: {
50: '#6b528d',
500: '#2a115f',
950: '#000000',
},
}SCSS
$custom: #2a115f; $custom-light: #6b528d; $custom-dark: #000000;
JSON
{
"hex": "#2a115f",
"rgb": {
"r": 42,
"g": 17,
"b": 95
},
"hsl": {
"h": 259.231,
"s": 69.643,
"l": 21.961
},
"oklch": {
"l": 0.27287,
"c": 0.12679,
"h": 289.8
},
"luminance": 0.01719
}Semantic roles & 50–950 ramp
primary
#2A115F
secondary
#789834
accent
#EC3BB4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D