#2B1A6E#2B1A6E
#2B1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.136 H 284.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1A6E |
|---|---|
| RGB | rgb(43, 26, 110) |
| HSL | hsl(252, 62%, 27%) |
| HSV | hsv(252, 76%, 43%) |
| CMYK | cmyk(60.9%, 76.4%, 0%, 56.9%) |
| CIE-LAB | lab(17.36, 32.70, -45.75) |
| CIE-LCH | lch(17.36, 56.24, 305.55°) |
| OKLab | oklab(30.19% 0.0329 -0.1318) |
| OKLCH | oklch(30.19% 0.136 284) |
| XYZ | xyz(4.1793, 2.3779, 14.9876) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.53
Dark Indigo
#1F0954
ΔE00 5.29
Dark Royal Blue
#02066F
ΔE00 5.32
Darkblue (survey)
#030764
ΔE00 5.36
Indigo (survey)
#380282
ΔE00 5.54
Deep Blue
#040273
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1A6E #5D6E1A
analogous
#1A336E #2B1A6E #551A6E
triadic
#2B1A6E #6E2B1A #1A6E2B
tetradic
#2B1A6E #6E1A33 #5D6E1A #1A6E55
square
#2B1A6E #6E1A33 #5D6E1A #1A6E55
split-complementary
#2B1A6E #6E551A #336E1A
monochromatic
#0A0619 #180E3D #2B1A6E #3E26A0 #5334CF
Accessibility & contrast
On white
14.23
#2B1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2B1A6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1A6E
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1A6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1A6E | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#053142
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b1a6e; /* rgb */ color: rgb(43, 26, 110); /* oklch */ color: oklch(30.2% 0.136 284.0);
Tailwind
colors: {
custom: {
50: '#6d5898',
500: '#2b1a6e',
950: '#000000',
},
}SCSS
$custom: #2b1a6e; $custom-light: #6d5898; $custom-dark: #000000;
JSON
{
"hex": "#2b1a6e",
"rgb": {
"r": 43,
"g": 26,
"b": 110
},
"hsl": {
"h": 252.143,
"s": 61.765,
"l": 26.667
},
"oklch": {
"l": 0.30192,
"c": 0.13582,
"h": 284
},
"luminance": 0.02378
}Semantic roles & 50–950 ramp
primary
#2B1A6E
secondary
#8FA341
accent
#E543C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E