#1B157B#1B157B
#1B157B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.161 H 273.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1B157B |
|---|---|
| RGB | rgb(27, 21, 123) |
| HSL | hsl(244, 71%, 28%) |
| HSV | hsv(244, 83%, 48%) |
| CMYK | cmyk(78%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(16.50, 38.00, -55.60) |
| CIE-LCH | lch(16.50, 67.34, 304.35°) |
| OKLab | oklab(29.68% 0.0088 -0.1609) |
| OKLCH | oklch(29.68% 0.161 273.1) |
| XYZ | xyz(4.2941, 2.1990, 18.9332) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.26
Dark Royal Blue
#02066F
ΔE00 3.51
Royal
#0C1793
ΔE00 3.54
Deep Blue
#040273
ΔE00 3.77
Navy
#000080
ΔE00 3.80
Darkblue
#00008B
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B157B #757B15
analogous
#15427B #1B157B #4E157B
triadic
#1B157B #7B1B15 #157B1B
tetradic
#1B157B #7B1542 #757B15 #157B4E
square
#1B157B #7B1542 #757B15 #157B4E
split-complementary
#1B157B #7B4E15 #427B15
monochromatic
#06041A #100C47 #1B157B #261EAF #392FDB
Accessibility & contrast
On white
14.59
#1B157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1B157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B157B
14.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B157B | 1.00 | 14.59 | 1.44 | 14.59 |
| #FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1b157b; /* rgb */ color: rgb(27, 21, 123); /* oklch */ color: oklch(29.7% 0.161 273.1);
Tailwind
colors: {
custom: {
50: '#6a55a2',
500: '#1b157b',
950: '#000000',
},
}SCSS
$custom: #1b157b; $custom-light: #6a55a2; $custom-dark: #000000;
JSON
{
"hex": "#1b157b",
"rgb": {
"r": 27,
"g": 21,
"b": 123
},
"hsl": {
"h": 243.529,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.29682,
"c": 0.1611,
"h": 273.1
},
"luminance": 0.02199
}Semantic roles & 50–950 ramp
primary
#1B157B
secondary
#A9B03B
accent
#EE3AE3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F