#1B127F#1B127F
#1B127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 272.9°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1B127F |
|---|---|
| RGB | rgb(27, 18, 127) |
| HSL | hsl(245, 75%, 28%) |
| HSV | hsv(245, 86%, 50%) |
| CMYK | cmyk(78.7%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.49, 40.80, -58.16) |
| CIE-LCH | lch(16.49, 71.05, 305.05°) |
| OKLab | oklab(29.82% 0.0086 -0.1682) |
| OKLCH | oklch(29.82% 0.168 272.9) |
| XYZ | xyz(4.4978, 2.1975, 20.2617) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Navy
#000080
ΔE00 3.12
Midnight Blue
#191970
ΔE00 3.17
Darkblue
#00008B
ΔE00 3.27
Dark Royal Blue
#02066F
ΔE00 3.46
Deep Blue
#040273
ΔE00 3.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B127F #767F12
analogous
#123F7F #1B127F #51127F
triadic
#1B127F #7F1B12 #127F1B
tetradic
#1B127F #7F123F #767F12 #127F51
square
#1B127F #7F123F #767F12 #127F51
split-complementary
#1B127F #7F5112 #3F7F12
monochromatic
#06041B #100A49 #1B127F #261AB5 #3A2BE1
Accessibility & contrast
On white
14.59
#1B127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1B127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B127F
14.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B127F | 1.00 | 14.59 | 1.44 | 14.59 |
| #FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1b127f; /* rgb */ color: rgb(27, 18, 127); /* oklch */ color: oklch(29.8% 0.168 272.9);
Tailwind
colors: {
custom: {
50: '#6b54a5',
500: '#1b127f',
950: '#000000',
},
}SCSS
$custom: #1b127f; $custom-light: #6b54a5; $custom-dark: #000000;
JSON
{
"hex": "#1b127f",
"rgb": {
"r": 27,
"g": 18,
"b": 127
},
"hsl": {
"h": 244.954,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29822,
"c": 0.16846,
"h": 272.9
},
"luminance": 0.02198
}Semantic roles & 50–950 ramp
primary
#1B127F
secondary
#AAB538
accent
#F236E2
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F