#1B318E#1B318E
#1B318E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.156 H 267.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1B318E |
|---|---|
| RGB | rgb(27, 49, 142) |
| HSL | hsl(229, 68%, 33%) |
| HSV | hsv(229, 81%, 56%) |
| CMYK | cmyk(81%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(24.90, 27.47, -53.72) |
| CIE-LCH | lch(24.90, 60.33, 297.08°) |
| OKLab | oklab(36.32% -0.0072 -0.1555) |
| OKLCH | oklch(36.32% 0.156 267.3) |
| XYZ | xyz(6.4311, 4.3819, 26.0928) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.47
Blueberry
#464196
ΔE00 6.67
Darkslateblue
#483D8B
ΔE00 6.96
Royal
#0C1793
ΔE00 6.98
Midnight Blue
#191970
ΔE00 7.59
Darkish Blue
#014182
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B318E #8E781B
analogous
#1B6A8E #1B318E #3F1B8E
triadic
#1B318E #8E1B31 #318E1B
tetradic
#1B318E #8E1B6A #8E781B #1B8E3F
square
#1B318E #8E1B6A #8E781B #1B8E3F
split-complementary
#1B318E #8E3F1B #6A8E1B
monochromatic
#070E27 #111F5B #1B318E #2543C1 #4764DC
Accessibility & contrast
On white
11.19
#1B318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1B318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B318E
11.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B318E | 1.00 | 11.19 | 1.88 | 11.19 |
| #FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1b318e; /* rgb */ color: rgb(27, 49, 142); /* oklch */ color: oklch(36.3% 0.156 267.3);
Tailwind
colors: {
custom: {
50: '#6c69b0',
500: '#1b318e',
950: '#000000',
},
}SCSS
$custom: #1b318e; $custom-light: #6c69b0; $custom-dark: #000000;
JSON
{
"hex": "#1b318e",
"rgb": {
"r": 27,
"g": 49,
"b": 142
},
"hsl": {
"h": 228.522,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.36323,
"c": 0.15563,
"h": 267.3
},
"luminance": 0.04383
}Semantic roles & 50–950 ramp
primary
#1B318E
secondary
#BEA747
accent
#CA3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80