#1B178E#1B178E
#1B178E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 271.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1B178E |
|---|---|
| RGB | rgb(27, 23, 142) |
| HSL | hsl(242, 72%, 32%) |
| HSV | hsv(242, 84%, 56%) |
| CMYK | cmyk(81%, 83.8%, 0%, 44.3%) |
| CIE-LAB | lab(19.22, 43.22, -63.09) |
| CIE-LCH | lch(19.22, 76.47, 304.41°) |
| OKLab | oklab(32.25% 0.0035 -0.1826) |
| OKLCH | oklch(32.25% 0.183 271.1) |
| XYZ | xyz(5.6392, 2.7982, 25.8288) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.02
Cobalt Blue
#030AA7
ΔE00 3.67
Darkblue
#00008B
ΔE00 3.68
Royal Blue (survey)
#0504AA
ΔE00 4.22
Navy
#000080
ΔE00 4.44
Midnight Blue
#191970
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B178E #8A8E17
analogous
#174E8E #1B178E #57178E
triadic
#1B178E #8E1B17 #178E1B
tetradic
#1B178E #8E174E #8A8E17 #178E57
square
#1B178E #8E174E #8A8E17 #178E57
split-complementary
#1B178E #8E5717 #4E8E17
monochromatic
#070625 #110E59 #1B178E #2520C3 #453FE0
Accessibility & contrast
On white
13.46
#1B178E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1B178E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B178E
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B178E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B178E | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1b178e; /* rgb */ color: rgb(27, 23, 142); /* oklch */ color: oklch(32.3% 0.183 271.1);
Tailwind
colors: {
custom: {
50: '#6f58b0',
500: '#1b178e',
950: '#000000',
},
}SCSS
$custom: #1b178e; $custom-light: #6f58b0; $custom-dark: #000000;
JSON
{
"hex": "#1b178e",
"rgb": {
"r": 27,
"g": 23,
"b": 142
},
"hsl": {
"h": 242.017,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.32254,
"c": 0.18262,
"h": 271.1
},
"luminance": 0.02799
}Semantic roles & 50–950 ramp
primary
#1B178E
secondary
#BCC040
accent
#EF39E9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880