#2A126F#2A126F
#2A126F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.146 H 284.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2A126F |
|---|---|
| RGB | rgb(42, 18, 111) |
| HSL | hsl(255, 72%, 25%) |
| HSV | hsv(255, 84%, 44%) |
| CMYK | cmyk(62.2%, 83.8%, 0%, 56.5%) |
| CIE-LAB | lab(15.86, 37.15, -48.87) |
| CIE-LCH | lch(15.86, 61.39, 307.24°) |
| OKLab | oklab(29.15% 0.0369 -0.1408) |
| OKLCH | oklch(29.15% 0.146 284.7) |
| XYZ | xyz(4.0395, 2.0723, 15.2230) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.14
Dark Royal Blue
#02066F
ΔE00 4.08
Indigo (survey)
#380282
ΔE00 4.16
Deep Blue
#040273
ΔE00 4.35
Darkblue (survey)
#030764
ΔE00 4.38
Dark Indigo
#1F0954
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A126F #576F12
analogous
#12286F #2A126F #58126F
triadic
#2A126F #6F2A12 #126F2A
tetradic
#2A126F #6F1228 #576F12 #126F58
square
#2A126F #6F1228 #576F12 #126F58
split-complementary
#2A126F #6F5812 #286F12
monochromatic
#0A041A #16093A #2A126F #3E1BA4 #5223D8
Accessibility & contrast
On white
14.85
#2A126F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2A126F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A126F
14.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A126F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A126F | 1.00 | 14.85 | 1.41 | 14.85 |
| #FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#012E41
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a126f; /* rgb */ color: rgb(42, 18, 111); /* oklch */ color: oklch(29.2% 0.146 284.7);
Tailwind
colors: {
custom: {
50: '#6e5499',
500: '#2a126f',
950: '#000000',
},
}SCSS
$custom: #2a126f; $custom-light: #6e5499; $custom-dark: #000000;
JSON
{
"hex": "#2a126f",
"rgb": {
"r": 42,
"g": 18,
"b": 111
},
"hsl": {
"h": 255.484,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.29151,
"c": 0.14559,
"h": 284.7
},
"luminance": 0.02073
}Semantic roles & 50–950 ramp
primary
#2A126F
secondary
#89A637
accent
#EF39C0
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E