#2A1B6E#2A1B6E
#2A1B6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 283.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B6E |
|---|---|
| RGB | rgb(42, 27, 110) |
| HSL | hsl(251, 61%, 27%) |
| HSV | hsv(251, 75%, 43%) |
| CMYK | cmyk(61.8%, 75.5%, 0%, 56.9%) |
| CIE-LAB | lab(17.47, 31.95, -45.58) |
| CIE-LCH | lch(17.47, 55.66, 305.04°) |
| OKLab | oklab(30.25% 0.0305 -0.1313) |
| OKLCH | oklch(30.25% 0.135 283.1) |
| XYZ | xyz(4.1604, 2.4016, 14.9932) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Dark Royal Blue
#02066F
ΔE00 5.43
Dark Indigo
#1F0954
ΔE00 5.43
Darkblue (survey)
#030764
ΔE00 5.44
Indigo (survey)
#380282
ΔE00 5.82
Deep Blue
#040273
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B6E #5F6E1B
analogous
#1B366E #2A1B6E #541B6E
triadic
#2A1B6E #6E2A1B #1B6E2A
tetradic
#2A1B6E #6E1B36 #5F6E1B #1B6E54
square
#2A1B6E #6E1B36 #5F6E1B #1B6E54
split-complementary
#2A1B6E #6E541B #366E1B
monochromatic
#090619 #170F3D #2A1B6E #3D279F #5136CE
Accessibility & contrast
On white
14.19
#2A1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2A1B6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B6E
14.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B6E | 1.00 | 14.19 | 1.48 | 14.19 |
| #FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#013242
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a1b6e; /* rgb */ color: rgb(42, 27, 110); /* oklch */ color: oklch(30.2% 0.135 283.1);
Tailwind
colors: {
custom: {
50: '#6d5998',
500: '#2a1b6e',
950: '#000000',
},
}SCSS
$custom: #2a1b6e; $custom-light: #6d5998; $custom-dark: #000000;
JSON
{
"hex": "#2a1b6e",
"rgb": {
"r": 42,
"g": 27,
"b": 110
},
"hsl": {
"h": 250.843,
"s": 60.584,
"l": 26.863
},
"oklch": {
"l": 0.30246,
"c": 0.13479,
"h": 283.1
},
"luminance": 0.02402
}Semantic roles & 50–950 ramp
primary
#2A1B6E
secondary
#91A342
accent
#E444C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E