#2B1B9B#2B1B9B
#2B1B9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.191 H 276.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1B9B |
|---|---|
| RGB | rgb(43, 27, 155) |
| HSL | hsl(248, 70%, 36%) |
| HSV | hsv(248, 83%, 61%) |
| CMYK | cmyk(72.3%, 82.6%, 0%, 39.2%) |
| CIE-LAB | lab(22.53, 46.50, -65.61) |
| CIE-LCH | lch(22.53, 80.42, 305.33°) |
| OKLab | oklab(35.28% 0.0198 -0.1896) |
| OKLCH | oklch(35.28% 0.191 276) |
| XYZ | xyz(7.3026, 3.6633, 31.3262) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.67
Cobalt Blue
#030AA7
ΔE00 3.28
Indigo Blue
#3A18B1
ΔE00 3.49
Royal Blue (survey)
#0504AA
ΔE00 3.73
Ultramarine
#2000B1
ΔE00 3.94
Darkblue
#00008B
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1B9B #8B9B1B
analogous
#1B4B9B #2B1B9B #6B1B9B
triadic
#2B1B9B #9B2B1B #1B9B2B
tetradic
#2B1B9B #9B1B4B #8B9B1B #1B9B6B
square
#2B1B9B #9B1B4B #8B9B1B #1B9B6B
split-complementary
#2B1B9B #9B6B1B #4B9B1B
monochromatic
#0E0933 #1D1267 #2B1B9B #3924CF #6250E0
Accessibility & contrast
On white
12.12
#2B1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2B1B9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1B9B
12.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1B9B | 1.00 | 12.12 | 1.73 | 12.12 |
| #FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2b1b9b; /* rgb */ color: rgb(43, 27, 155); /* oklch */ color: oklch(35.3% 0.191 276.0);
Tailwind
colors: {
custom: {
50: '#775cba',
500: '#2b1b9b',
950: '#000000',
},
}SCSS
$custom: #2b1b9b; $custom-light: #775cba; $custom-dark: #000000;
JSON
{
"hex": "#2b1b9b",
"rgb": {
"r": 43,
"g": 27,
"b": 155
},
"hsl": {
"h": 247.5,
"s": 70.33,
"l": 35.686
},
"oklch": {
"l": 0.35285,
"c": 0.19067,
"h": 276
},
"luminance": 0.03664
}Semantic roles & 50–950 ramp
primary
#2B1B9B
secondary
#B5C34F
accent
#ED3BD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981