#2B1F8F#2B1F8F
#2B1F8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.173 H 277.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F8F |
|---|---|
| RGB | rgb(43, 31, 143) |
| HSL | hsl(246, 64%, 34%) |
| HSV | hsv(246, 78%, 56%) |
| CMYK | cmyk(69.9%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(21.86, 40.68, -59.30) |
| CIE-LCH | lch(21.86, 71.92, 304.45°) |
| OKLab | oklab(34.42% 0.0212 -0.1714) |
| OKLCH | oklch(34.42% 0.173 277.1) |
| XYZ | xyz(6.4426, 3.4762, 26.3127) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.71
Cobalt Blue
#030AA7
ΔE00 4.78
Indigo Blue
#3A18B1
ΔE00 5.21
Midnight Blue
#191970
ΔE00 5.21
Royal Blue (survey)
#0504AA
ΔE00 5.30
Indigo (survey)
#380282
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F8F #838F1F
analogous
#1F4B8F #2B1F8F #631F8F
triadic
#2B1F8F #8F2B1F #1F8F2B
tetradic
#2B1F8F #8F1F4B #838F1F #1F8F63
square
#2B1F8F #8F1F4B #838F1F #1F8F63
split-complementary
#2B1F8F #8F631F #4B8F1F
monochromatic
#0D092A #1C145D #2B1F8F #3A2AC1 #5E4FD9
Accessibility & contrast
On white
12.39
#2B1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2B1F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F8F
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F8F | 1.00 | 12.39 | 1.70 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2b1f8f; /* rgb */ color: rgb(43, 31, 143); /* oklch */ color: oklch(34.4% 0.173 277.1);
Tailwind
colors: {
custom: {
50: '#745db1',
500: '#2b1f8f',
950: '#000000',
},
}SCSS
$custom: #2b1f8f; $custom-light: #745db1; $custom-dark: #000000;
JSON
{
"hex": "#2b1f8f",
"rgb": {
"r": 43,
"g": 31,
"b": 143
},
"hsl": {
"h": 246.429,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.34419,
"c": 0.17268,
"h": 277.1
},
"luminance": 0.03477
}Semantic roles & 50–950 ramp
primary
#2B1F8F
secondary
#B0BC4E
accent
#E740D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980