#1B157F#1B157F
#1B157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 272.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1B157F |
|---|---|
| RGB | rgb(27, 21, 127) |
| HSL | hsl(243, 72%, 29%) |
| HSV | hsv(243, 83%, 50%) |
| CMYK | cmyk(78.7%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(16.99, 39.33, -57.33) |
| CIE-LCH | lch(16.99, 69.52, 304.45°) |
| OKLab | oklab(30.17% 0.0077 -0.1659) |
| OKLCH | oklch(30.17% 0.166 272.7) |
| XYZ | xyz(4.5496, 2.3012, 20.2789) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.81
Royal
#0C1793
ΔE00 2.95
Navy
#000080
ΔE00 3.67
Darkblue
#00008B
ΔE00 3.77
Dark Royal Blue
#02066F
ΔE00 3.82
Deep Blue
#040273
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B157F #797F15
analogous
#15447F #1B157F #50157F
triadic
#1B157F #7F1B15 #157F1B
tetradic
#1B157F #7F1544 #797F15 #157F50
square
#1B157F #7F1544 #797F15 #157F50
split-complementary
#1B157F #7F5015 #447F15
monochromatic
#06041A #100C4A #1B157F #261EB4 #3B31DD
Accessibility & contrast
On white
14.38
#1B157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1B157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B157F
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B157F | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1b157f; /* rgb */ color: rgb(27, 21, 127); /* oklch */ color: oklch(30.2% 0.166 272.7);
Tailwind
colors: {
custom: {
50: '#6b56a5',
500: '#1b157f',
950: '#000000',
},
}SCSS
$custom: #1b157f; $custom-light: #6b56a5; $custom-dark: #000000;
JSON
{
"hex": "#1b157f",
"rgb": {
"r": 27,
"g": 21,
"b": 127
},
"hsl": {
"h": 243.396,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.3017,
"c": 0.16606,
"h": 272.7
},
"luminance": 0.02302
}Semantic roles & 50–950 ramp
primary
#1B157F
secondary
#ADB43C
accent
#EE39E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F