#1B118E#1B118E
#1B118E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.187 H 271.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #1B118E |
|---|---|
| RGB | rgb(27, 17, 142) |
| HSL | hsl(245, 79%, 31%) |
| HSV | hsv(245, 88%, 56%) |
| CMYK | cmyk(81%, 88%, 0%, 44.3%) |
| CIE-LAB | lab(18.30, 45.92, -64.60) |
| CIE-LCH | lch(18.30, 79.26, 305.40°) |
| OKLab | oklab(31.63% 0.0047 -0.1868) |
| OKLCH | oklch(31.63% 0.187 271.4) |
| XYZ | xyz(5.5333, 2.5863, 25.7935) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.56
Darkblue
#00008B
ΔE00 2.71
Cobalt Blue
#030AA7
ΔE00 3.34
Navy
#000080
ΔE00 3.60
Royal Blue (survey)
#0504AA
ΔE00 3.79
Indigo (survey)
#380282
ΔE00 4.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B118E #848E11
analogous
#11458E #1B118E #59118E
triadic
#1B118E #8E1B11 #118E1B
tetradic
#1B118E #8E1145 #848E11 #118E59
square
#1B118E #8E1145 #848E11 #118E59
split-complementary
#1B118E #8E5911 #458E11
monochromatic
#060421 #110A57 #1B118E #2518C5 #4133E7
Accessibility & contrast
On white
13.84
#1B118E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1B118E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B118E
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B118E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B118E | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1b118e; /* rgb */ color: rgb(27, 17, 142); /* oklch */ color: oklch(31.6% 0.187 271.4);
Tailwind
colors: {
custom: {
50: '#6f55b0',
500: '#1b118e',
950: '#000000',
},
}SCSS
$custom: #1b118e; $custom-light: #6f55b0; $custom-dark: #000000;
JSON
{
"hex": "#1b118e",
"rgb": {
"r": 27,
"g": 17,
"b": 142
},
"hsl": {
"h": 244.8,
"s": 78.616,
"l": 31.176
},
"oklch": {
"l": 0.31626,
"c": 0.18691,
"h": 271.4
},
"luminance": 0.02587
}Semantic roles & 50–950 ramp
primary
#1B118E
secondary
#B7C238
accent
#F533E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880