#1B118C#1B118C
#1B118C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.4% C 0.185 H 271.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1B118C |
|---|---|
| RGB | rgb(27, 17, 140) |
| HSL | hsl(245, 78%, 31%) |
| HSV | hsv(245, 88%, 55%) |
| CMYK | cmyk(80.7%, 87.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.04, 45.31, -63.80) |
| CIE-LCH | lch(18.04, 78.25, 305.38°) |
| OKLab | oklab(31.37% 0.0053 -0.1845) |
| OKLCH | oklch(31.37% 0.185 271.6) |
| XYZ | xyz(5.3845, 2.5268, 25.0098) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.70
Darkblue
#00008B
ΔE00 2.66
Navy
#000080
ΔE00 3.44
Cobalt Blue
#030AA7
ΔE00 3.61
Royal Blue (survey)
#0504AA
ΔE00 4.05
Indigo (survey)
#380282
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B118C #828C11
analogous
#11448C #1B118C #58118C
triadic
#1B118C #8C1B11 #118C1B
tetradic
#1B118C #8C1144 #828C11 #118C58
square
#1B118C #8C1144 #828C11 #118C58
split-complementary
#1B118C #8C5811 #448C11
monochromatic
#06041F #100A55 #1B118C #2618C3 #4031E6
Accessibility & contrast
On white
13.95
#1B118C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1B118C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B118C
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B118C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B118C | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b118c; /* rgb */ color: rgb(27, 17, 140); /* oklch */ color: oklch(31.4% 0.185 271.6);
Tailwind
colors: {
custom: {
50: '#6f55af',
500: '#1b118c',
950: '#000000',
},
}SCSS
$custom: #1b118c; $custom-light: #6f55af; $custom-dark: #000000;
JSON
{
"hex": "#1b118c",
"rgb": {
"r": 27,
"g": 17,
"b": 140
},
"hsl": {
"h": 244.878,
"s": 78.344,
"l": 30.784
},
"oklch": {
"l": 0.31369,
"c": 0.18459,
"h": 271.6
},
"luminance": 0.02527
}Semantic roles & 50–950 ramp
primary
#1B118C
secondary
#B6C138
accent
#F533E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880