#2B1C8C#2B1C8C
#2B1C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.172 H 277.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1C8C |
|---|---|
| RGB | rgb(43, 28, 140) |
| HSL | hsl(248, 67%, 33%) |
| HSV | hsv(248, 80%, 55%) |
| CMYK | cmyk(69.3%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(20.97, 41.31, -58.90) |
| CIE-LCH | lch(20.97, 71.95, 305.04°) |
| OKLab | oklab(33.7% 0.0236 -0.1702) |
| OKLCH | oklch(33.7% 0.172 277.9) |
| XYZ | xyz(6.1436, 3.2370, 25.1069) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.58
Indigo (survey)
#380282
ΔE00 4.63
Cobalt Blue
#030AA7
ΔE00 4.72
Midnight Blue
#191970
ΔE00 4.81
Darkblue
#00008B
ΔE00 5.09
Royal Blue (survey)
#0504AA
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1C8C #7D8C1C
analogous
#1C458C #2B1C8C #631C8C
triadic
#2B1C8C #8C2B1C #1C8C2B
tetradic
#2B1C8C #8C1C45 #7D8C1C #1C8C63
square
#2B1C8C #8C1C45 #7D8C1C #1C8C63
split-complementary
#2B1C8C #8C631C #458C1C
monochromatic
#0C0826 #1B1259 #2B1C8C #3B26BF #5C48DA
Accessibility & contrast
On white
12.75
#2B1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2B1C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1C8C
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1C8C | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1c8c; /* rgb */ color: rgb(43, 28, 140); /* oklch */ color: oklch(33.7% 0.172 277.9);
Tailwind
colors: {
custom: {
50: '#745baf',
500: '#2b1c8c',
950: '#000000',
},
}SCSS
$custom: #2b1c8c; $custom-light: #745baf; $custom-dark: #000000;
JSON
{
"hex": "#2b1c8c",
"rgb": {
"r": 43,
"g": 28,
"b": 140
},
"hsl": {
"h": 248.036,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.33698,
"c": 0.1718,
"h": 277.9
},
"luminance": 0.03238
}Semantic roles & 50–950 ramp
primary
#2B1C8C
secondary
#ADBC48
accent
#EA3ED3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F