#1B1F82#1B1F82
#1B1F82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.160 H 271.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1F82 |
|---|---|
| RGB | rgb(27, 31, 130) |
| HSL | hsl(238, 66%, 31%) |
| HSV | hsv(238, 79%, 51%) |
| CMYK | cmyk(79.2%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(19.33, 34.71, -55.37) |
| CIE-LCH | lch(19.33, 65.35, 302.08°) |
| OKLab | oklab(31.91% 0.0032 -0.1603) |
| OKLCH | oklch(31.91% 0.16 271.2) |
| XYZ | xyz(4.9699, 2.8241, 21.3980) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Royal
#0C1793
ΔE00 3.22
Darkblue
#00008B
ΔE00 5.77
Dark Royal Blue
#02066F
ΔE00 5.84
Navy
#000080
ΔE00 5.92
Deep Blue
#040273
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1F82 #827E1B
analogous
#1B5282 #1B1F82 #4A1B82
triadic
#1B1F82 #821B1F #1F821B
tetradic
#1B1F82 #821B52 #827E1B #1B824A
square
#1B1F82 #821B52 #827E1B #1B824A
split-complementary
#1B1F82 #824A1B #52821B
monochromatic
#06071D #10134F #1B1F82 #262BB5 #4046D7
Accessibility & contrast
On white
13.42
#1B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1B1F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1F82
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1F82 | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b1f82; /* rgb */ color: rgb(27, 31, 130); /* oklch */ color: oklch(31.9% 0.160 271.2);
Tailwind
colors: {
custom: {
50: '#6b5ca7',
500: '#1b1f82',
950: '#000000',
},
}SCSS
$custom: #1b1f82; $custom-light: #6b5ca7; $custom-dark: #000000;
JSON
{
"hex": "#1b1f82",
"rgb": {
"r": 27,
"g": 31,
"b": 130
},
"hsl": {
"h": 237.67,
"s": 65.605,
"l": 30.784
},
"oklch": {
"l": 0.31914,
"c": 0.16036,
"h": 271.2
},
"luminance": 0.02825
}Semantic roles & 50–950 ramp
primary
#1B1F82
secondary
#B6B143
accent
#E23FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F