#2A114F#2A114F
#2A114F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.106 H 296.5°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2A114F |
|---|---|
| RGB | rgb(42, 17, 79) |
| HSL | hsl(264, 65%, 19%) |
| HSV | hsv(264, 78%, 31%) |
| CMYK | cmyk(46.8%, 78.5%, 0%, 69%) |
| CIE-LAB | lab(12.34, 27.86, -33.28) |
| CIE-LCH | lch(12.34, 43.40, 309.93°) |
| OKLab | oklab(25.67% 0.0475 -0.0952) |
| OKLCH | oklch(25.67% 0.106 296.5) |
| XYZ | xyz(2.5662, 1.4576, 7.5418) |
| Luminance | 0.0146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.31
Midnight Purple
#280137
ΔE00 5.90
Night Blue
#040348
ΔE00 6.09
Dark Violet
#34013F
ΔE00 6.10
Dark Purple
#35063E
ΔE00 6.25
Deep Purple
#36013F
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A114F #364F11
analogous
#11174F #2A114F #49114F
triadic
#2A114F #4F2A11 #114F2A
tetradic
#2A114F #4F1117 #364F11 #114F49
square
#2A114F #4F1117 #364F11 #114F49
split-complementary
#2A114F #4F4911 #174F11
monochromatic
#0D0519 #0F061D #2A114F #451C81 #6027B4
Accessibility & contrast
On white
16.26
#2A114F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#2A114F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A114F
16.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A114F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A114F | 1.00 | 16.26 | 1.29 | 16.26 |
| #FFFFFF | 16.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#20212E
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2a114f; /* rgb */ color: rgb(42, 17, 79); /* oklch */ color: oklch(25.7% 0.106 296.5);
Tailwind
colors: {
custom: {
50: '#685181',
500: '#2a114f',
950: '#000000',
},
}SCSS
$custom: #2a114f; $custom-light: #685181; $custom-dark: #000000;
JSON
{
"hex": "#2a114f",
"rgb": {
"r": 42,
"g": 17,
"b": 79
},
"hsl": {
"h": 264.194,
"s": 64.583,
"l": 18.824
},
"oklch": {
"l": 0.25666,
"c": 0.10639,
"h": 296.5
},
"luminance": 0.01458
}Semantic roles & 50–950 ramp
primary
#2A114F
secondary
#668833
accent
#E840A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C