#2B1B9D#2B1B9D
#2B1B9D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.193 H 275.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1B9D |
|---|---|
| RGB | rgb(43, 27, 157) |
| HSL | hsl(247, 71%, 36%) |
| HSV | hsv(247, 83%, 62%) |
| CMYK | cmyk(72.6%, 82.8%, 0%, 38.4%) |
| CIE-LAB | lab(22.76, 47.12, -66.44) |
| CIE-LCH | lch(22.76, 81.45, 305.34°) |
| OKLab | oklab(35.52% 0.0192 -0.1921) |
| OKLCH | oklch(35.52% 0.193 275.7) |
| XYZ | xyz(7.4720, 3.7311, 32.2181) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.81
Cobalt Blue
#030AA7
ΔE00 3.19
Indigo Blue
#3A18B1
ΔE00 3.25
Royal Blue (survey)
#0504AA
ΔE00 3.62
Ultramarine
#2000B1
ΔE00 3.76
Darkblue
#00008B
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1B9D #8D9D1B
analogous
#1B4C9D #2B1B9D #6C1B9D
triadic
#2B1B9D #9D2B1B #1B9D2B
tetradic
#2B1B9D #9D1B4C #8D9D1B #1B9D6C
square
#2B1B9D #9D1B4C #8D9D1B #1B9D6C
split-complementary
#2B1B9D #9D6C1B #4C9D1B
monochromatic
#0E0935 #1D1269 #2B1B9D #3924D1 #6351E1
Accessibility & contrast
On white
12.02
#2B1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2B1B9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1B9D
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1B9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1B9D | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2b1b9d; /* rgb */ color: rgb(43, 27, 157); /* oklch */ color: oklch(35.5% 0.193 275.7);
Tailwind
colors: {
custom: {
50: '#785cbb',
500: '#2b1b9d',
950: '#000000',
},
}SCSS
$custom: #2b1b9d; $custom-light: #785cbb; $custom-dark: #000000;
JSON
{
"hex": "#2b1b9d",
"rgb": {
"r": 43,
"g": 27,
"b": 157
},
"hsl": {
"h": 247.385,
"s": 70.652,
"l": 36.078
},
"oklch": {
"l": 0.35517,
"c": 0.19303,
"h": 275.7
},
"luminance": 0.03732
}Semantic roles & 50–950 ramp
primary
#2B1B9D
secondary
#B6C450
accent
#ED3AD7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981