#2B1F99#2B1F99
#2B1F99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.185 H 275.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F99 |
|---|---|
| RGB | rgb(43, 31, 153) |
| HSL | hsl(246, 66%, 36%) |
| HSV | hsv(246, 80%, 60%) |
| CMYK | cmyk(71.9%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(22.97, 43.90, -63.64) |
| CIE-LCH | lch(22.97, 77.31, 304.60°) |
| OKLab | oklab(35.53% 0.0187 -0.184) |
| OKLCH | oklch(35.53% 0.185 275.8) |
| XYZ | xyz(7.2341, 3.7928, 30.4817) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Indigo Blue
#3A18B1
ΔE00 3.90
Cobalt Blue
#030AA7
ΔE00 3.97
Royal Blue (survey)
#0504AA
ΔE00 4.46
Ultramarine
#2000B1
ΔE00 4.71
Indigo (survey)
#380282
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F99 #8D991F
analogous
#1F5099 #2B1F99 #681F99
triadic
#2B1F99 #992B1F #1F992B
tetradic
#2B1F99 #991F50 #8D991F #1F9968
square
#2B1F99 #991F50 #8D991F #1F9968
split-complementary
#2B1F99 #99681F #50991F
monochromatic
#0E0A33 #1D1566 #2B1F99 #3929CC #6356DD
Accessibility & contrast
On white
11.94
#2B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2B1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F99
11.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F99 | 1.00 | 11.94 | 1.76 | 11.94 |
| #FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2b1f99; /* rgb */ color: rgb(43, 31, 153); /* oklch */ color: oklch(35.5% 0.185 275.8);
Tailwind
colors: {
custom: {
50: '#765eb8',
500: '#2b1f99',
950: '#000000',
},
}SCSS
$custom: #2b1f99; $custom-light: #765eb8; $custom-dark: #000000;
JSON
{
"hex": "#2b1f99",
"rgb": {
"r": 43,
"g": 31,
"b": 153
},
"hsl": {
"h": 245.902,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.3553,
"c": 0.18492,
"h": 275.8
},
"luminance": 0.03793
}Semantic roles & 50–950 ramp
primary
#2B1F99
secondary
#B6C054
accent
#E93FD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981