#1B187F#1B187F
#1B187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 272.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #1B187F |
|---|---|
| RGB | rgb(27, 24, 127) |
| HSL | hsl(242, 68%, 30%) |
| HSV | hsv(242, 81%, 50%) |
| CMYK | cmyk(78.7%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(17.54, 37.73, -56.42) |
| CIE-LCH | lch(17.54, 67.87, 303.77°) |
| OKLab | oklab(30.55% 0.0067 -0.1633) |
| OKLCH | oklch(30.55% 0.163 272.3) |
| XYZ | xyz(4.6081, 2.4181, 20.2984) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.52
Royal
#0C1793
ΔE00 2.96
Dark Royal Blue
#02066F
ΔE00 4.28
Navy
#000080
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.35
Deep Blue
#040273
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B187F #7C7F18
analogous
#18487F #1B187F #4F187F
triadic
#1B187F #7F1B18 #187F1B
tetradic
#1B187F #7F1848 #7C7F18 #187F4F
square
#1B187F #7F1848 #7C7F18 #187F4F
split-complementary
#1B187F #7F4F18 #487F18
monochromatic
#05051A #100E4C #1B187F #2622B2 #3D38D9
Accessibility & contrast
On white
14.15
#1B187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#1B187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B187F
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B187F | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1b187f; /* rgb */ color: rgb(27, 24, 127); /* oklch */ color: oklch(30.6% 0.163 272.3);
Tailwind
colors: {
custom: {
50: '#6b57a5',
500: '#1b187f',
950: '#000000',
},
}SCSS
$custom: #1b187f; $custom-light: #6b57a5; $custom-dark: #000000;
JSON
{
"hex": "#1b187f",
"rgb": {
"r": 27,
"g": 24,
"b": 127
},
"hsl": {
"h": 241.748,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30554,
"c": 0.16342,
"h": 272.3
},
"luminance": 0.02419
}Semantic roles & 50–950 ramp
primary
#1B187F
secondary
#B0B33F
accent
#EB3DE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F