#1B158A#1B158A
#1B158A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.179 H 271.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).
Color values
| HEX | #1B158A |
|---|---|
| RGB | rgb(27, 21, 138) |
| HSL | hsl(243, 74%, 31%) |
| HSV | hsv(243, 85%, 54%) |
| CMYK | cmyk(80.4%, 84.8%, 0%, 45.9%) |
| CIE-LAB | lab(18.38, 42.90, -61.97) |
| CIE-LCH | lch(18.38, 75.37, 304.69°) |
| OKLab | oklab(31.53% 0.0049 -0.1793) |
| OKLCH | oklch(31.53% 0.179 271.6) |
| XYZ | xyz(5.3061, 2.6037, 24.2628) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.51
Darkblue
#00008B
ΔE00 3.29
Navy
#000080
ΔE00 3.88
Cobalt Blue
#030AA7
ΔE00 4.05
Midnight Blue
#191970
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B158A #848A15
analogous
#15498A #1B158A #55158A
triadic
#1B158A #8A1B15 #158A1B
tetradic
#1B158A #8A1549 #848A15 #158A55
square
#1B158A #8A1549 #848A15 #158A55
split-complementary
#1B158A #8A5515 #498A15
monochromatic
#060520 #110D55 #1B158A #251DBF #4139E1
Accessibility & contrast
On white
13.81
#1B158A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1B158A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B158A
13.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B158A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B158A | 1.00 | 13.81 | 1.52 | 13.81 |
| #FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1b158a; /* rgb */ color: rgb(27, 21, 138); /* oklch */ color: oklch(31.5% 0.179 271.6);
Tailwind
colors: {
custom: {
50: '#6e56ad',
500: '#1b158a',
950: '#000000',
},
}SCSS
$custom: #1b158a; $custom-light: #6e56ad; $custom-dark: #000000;
JSON
{
"hex": "#1b158a",
"rgb": {
"r": 27,
"g": 21,
"b": 138
},
"hsl": {
"h": 243.077,
"s": 73.585,
"l": 31.176
},
"oklch": {
"l": 0.31531,
"c": 0.1794,
"h": 271.6
},
"luminance": 0.02604
}Semantic roles & 50–950 ramp
primary
#1B158A
secondary
#B7BE3D
accent
#F038E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F