#2B1F92#2B1F92
#2B1F92 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.176 H 276.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1F92 |
|---|---|
| RGB | rgb(43, 31, 146) |
| HSL | hsl(246, 65%, 35%) |
| HSV | hsv(246, 79%, 57%) |
| CMYK | cmyk(70.5%, 78.8%, 0%, 42.7%) |
| CIE-LAB | lab(22.19, 41.66, -60.62) |
| CIE-LCH | lch(22.19, 73.55, 304.50°) |
| OKLab | oklab(34.75% 0.0205 -0.1752) |
| OKLCH | oklch(34.75% 0.176 276.7) |
| XYZ | xyz(6.6729, 3.5683, 27.5256) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.66
Cobalt Blue
#030AA7
ΔE00 4.50
Indigo Blue
#3A18B1
ΔE00 4.80
Royal Blue (survey)
#0504AA
ΔE00 5.01
Ultramarine
#2000B1
ΔE00 5.42
Indigo (survey)
#380282
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1F92 #86921F
analogous
#1F4C92 #2B1F92 #651F92
triadic
#2B1F92 #922B1F #1F922B
tetradic
#2B1F92 #921F4C #86921F #1F9265
square
#2B1F92 #921F4C #86921F #1F9265
split-complementary
#2B1F92 #92651F #4C921F
monochromatic
#0D0A2D #1C1460 #2B1F92 #3A2AC4 #6051DA
Accessibility & contrast
On white
12.25
#2B1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2B1F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1F92
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1F92 | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2b1f92; /* rgb */ color: rgb(43, 31, 146); /* oklch */ color: oklch(34.7% 0.176 276.7);
Tailwind
colors: {
custom: {
50: '#755db3',
500: '#2b1f92',
950: '#000000',
},
}SCSS
$custom: #2b1f92; $custom-light: #755db3; $custom-dark: #000000;
JSON
{
"hex": "#2b1f92",
"rgb": {
"r": 43,
"g": 31,
"b": 146
},
"hsl": {
"h": 246.261,
"s": 64.972,
"l": 34.706
},
"oklch": {
"l": 0.34749,
"c": 0.17638,
"h": 276.7
},
"luminance": 0.03569
}Semantic roles & 50–950 ramp
primary
#2B1F92
secondary
#B2BD50
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980