#2B1F7E#2B1F7E
#2B1F7E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 279.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F7E |
|---|---|
| RGB | rgb(43, 31, 126) |
| HSL | hsl(248, 61%, 31%) |
| HSV | hsv(248, 75%, 49%) |
| CMYK | cmyk(65.9%, 75.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.04, 35.08, -51.62) |
| CIE-LCH | lch(20.04, 62.41, 304.20°) |
| OKLab | oklab(32.59% 0.0253 -0.149) |
| OKLCH | oklch(32.59% 0.151 279.6) |
| XYZ | xyz(5.2509, 2.9995, 20.0369) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 4.26
Indigo (survey)
#380282
ΔE00 5.36
Dark Royal Blue
#02066F
ΔE00 6.09
Darkblue
#00008B
ΔE00 6.25
Navy
#000080
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F7E #727E1F
analogous
#1F427E #2B1F7E #5A1F7E
triadic
#2B1F7E #7E2B1F #1F7E2B
tetradic
#2B1F7E #7E1F42 #727E1F #1F7E5A
square
#2B1F7E #7E1F42 #727E1F #1F7E5A
split-complementary
#2B1F7E #7E5A1F #427E1F
monochromatic
#09071C #1A134D #2B1F7E #3C2BAF #5846D1
Accessibility & contrast
On white
13.13
#2B1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2B1F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F7E
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F7E | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b1f7e; /* rgb */ color: rgb(43, 31, 126); /* oklch */ color: oklch(32.6% 0.151 279.6);
Tailwind
colors: {
custom: {
50: '#705ca4',
500: '#2b1f7e',
950: '#000000',
},
}SCSS
$custom: #2b1f7e; $custom-light: #705ca4; $custom-dark: #000000;
JSON
{
"hex": "#2b1f7e",
"rgb": {
"r": 43,
"g": 31,
"b": 126
},
"hsl": {
"h": 247.579,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.32594,
"c": 0.15109,
"h": 279.6
},
"luminance": 0.03
}Semantic roles & 50–950 ramp
primary
#2B1F7E
secondary
#A4B148
accent
#E444CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F