#2A114D#2A114D
#2A114D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.104 H 297.5°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2A114D |
|---|---|
| RGB | rgb(42, 17, 77) |
| HSL | hsl(265, 64%, 18%) |
| HSV | hsv(265, 78%, 30%) |
| CMYK | cmyk(45.5%, 77.9%, 0%, 69.8%) |
| CIE-LAB | lab(12.15, 27.26, -32.21) |
| CIE-LCH | lch(12.15, 42.20, 310.24°) |
| OKLab | oklab(25.48% 0.048 -0.092) |
| OKLCH | oklch(25.48% 0.104 297.5) |
| XYZ | xyz(2.4945, 1.4289, 7.1641) |
| Luminance | 0.0143 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.68
Midnight Purple
#280137
ΔE00 5.55
Dark Violet
#34013F
ΔE00 5.84
Dark Purple
#35063E
ΔE00 5.92
Deep Purple
#36013F
ΔE00 6.22
Night Blue
#040348
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A114D #344D11
analogous
#11164D #2A114D #48114D
triadic
#2A114D #4D2A11 #114D2A
tetradic
#2A114D #4D1116 #344D11 #114D48
square
#2A114D #4D1116 #344D11 #114D48
split-complementary
#2A114D #4D4811 #164D11
monochromatic
#0E0619 #0F061B #2A114D #451C7F #6127B1
Accessibility & contrast
On white
16.33
#2A114D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#2A114D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A114D
16.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A114D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A114D | 1.00 | 16.33 | 1.29 | 16.33 |
| #FFFFFF | 16.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#21202D
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2a114d; /* rgb */ color: rgb(42, 17, 77); /* oklch */ color: oklch(25.5% 0.104 297.5);
Tailwind
colors: {
custom: {
50: '#68517f',
500: '#2a114d',
950: '#000000',
},
}SCSS
$custom: #2a114d; $custom-light: #68517f; $custom-dark: #000000;
JSON
{
"hex": "#2a114d",
"rgb": {
"r": 42,
"g": 17,
"b": 77
},
"hsl": {
"h": 265,
"s": 63.83,
"l": 18.431
},
"oklch": {
"l": 0.25475,
"c": 0.10379,
"h": 297.5
},
"luminance": 0.01429
}Semantic roles & 50–950 ramp
primary
#2A114D
secondary
#648633
accent
#E741A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C