#1B168C#1B168C
#1B168C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.181 H 271.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1B168C |
|---|---|
| RGB | rgb(27, 22, 140) |
| HSL | hsl(243, 73%, 32%) |
| HSV | hsv(243, 84%, 55%) |
| CMYK | cmyk(80.7%, 84.3%, 0%, 45.1%) |
| CIE-LAB | lab(18.80, 43.06, -62.53) |
| CIE-LCH | lch(18.80, 75.92, 304.55°) |
| OKLab | oklab(31.89% 0.0042 -0.181) |
| OKLCH | oklch(31.89% 0.181 271.3) |
| XYZ | xyz(5.4709, 2.6997, 25.0386) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.24
Darkblue
#00008B
ΔE00 3.47
Cobalt Blue
#030AA7
ΔE00 3.85
Navy
#000080
ΔE00 4.15
Royal Blue (survey)
#0504AA
ΔE00 4.38
Midnight Blue
#191970
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B168C #878C16
analogous
#164C8C #1B168C #56168C
triadic
#1B168C #8C1B16 #168C1B
tetradic
#1B168C #8C164C #878C16 #168C56
square
#1B168C #8C164C #878C16 #168C56
split-complementary
#1B168C #8C5616 #4C8C16
monochromatic
#070522 #110E57 #1B168C #251EC1 #433CE0
Accessibility & contrast
On white
13.64
#1B168C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1B168C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B168C
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B168C | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1b168c; /* rgb */ color: rgb(27, 22, 140); /* oklch */ color: oklch(31.9% 0.181 271.3);
Tailwind
colors: {
custom: {
50: '#6e57af',
500: '#1b168c',
950: '#000000',
},
}SCSS
$custom: #1b168c; $custom-light: #6e57af; $custom-dark: #000000;
JSON
{
"hex": "#1b168c",
"rgb": {
"r": 27,
"g": 22,
"b": 140
},
"hsl": {
"h": 242.542,
"s": 72.84,
"l": 31.765
},
"oklch": {
"l": 0.31892,
"c": 0.18102,
"h": 271.3
},
"luminance": 0.027
}Semantic roles & 50–950 ramp
primary
#1B168C
secondary
#BAC03E
accent
#F038E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880