#2B1F96#2B1F96
#2B1F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.181 H 276.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F96 |
|---|---|
| RGB | rgb(43, 31, 150) |
| HSL | hsl(246, 66%, 35%) |
| HSV | hsv(246, 79%, 59%) |
| CMYK | cmyk(71.3%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(22.64, 42.94, -62.35) |
| CIE-LCH | lch(22.64, 75.71, 304.56°) |
| OKLab | oklab(35.19% 0.0194 -0.1802) |
| OKLCH | oklch(35.19% 0.181 276.2) |
| XYZ | xyz(6.9895, 3.6949, 29.1931) |
| Luminance | 0.0370 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.70
Cobalt Blue
#030AA7
ΔE00 4.17
Indigo Blue
#3A18B1
ΔE00 4.28
Royal Blue (survey)
#0504AA
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F96 #8A961F
analogous
#1F4F96 #2B1F96 #661F96
triadic
#2B1F96 #962B1F #1F962B
tetradic
#2B1F96 #961F4F #8A961F #1F9666
square
#2B1F96 #961F4F #8A961F #1F9666
split-complementary
#2B1F96 #96661F #4F961F
monochromatic
#0E0A31 #1C1563 #2B1F96 #3A29C9 #6154DC
Accessibility & contrast
On white
12.07
#2B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2B1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F96
12.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F96 | 1.00 | 12.07 | 1.74 | 12.07 |
| #FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2b1f96; /* rgb */ color: rgb(43, 31, 150); /* oklch */ color: oklch(35.2% 0.181 276.2);
Tailwind
colors: {
custom: {
50: '#765eb6',
500: '#2b1f96',
950: '#000000',
},
}SCSS
$custom: #2b1f96; $custom-light: #765eb6; $custom-dark: #000000;
JSON
{
"hex": "#2b1f96",
"rgb": {
"r": 43,
"g": 31,
"b": 150
},
"hsl": {
"h": 246.05,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.35194,
"c": 0.18129,
"h": 276.2
},
"luminance": 0.03696
}Semantic roles & 50–950 ramp
primary
#2B1F96
secondary
#B4BF52
accent
#E93FD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980