#1B318F#1B318F
#1B318F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.157 H 267.3°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).
Color values
| HEX | #1B318F |
|---|---|
| RGB | rgb(27, 49, 143) |
| HSL | hsl(229, 68%, 33%) |
| HSV | hsv(229, 81%, 56%) |
| CMYK | cmyk(81.1%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(24.99, 27.86, -54.18) |
| CIE-LCH | lch(24.99, 60.93, 297.21°) |
| OKLab | oklab(36.42% -0.0073 -0.1568) |
| OKLCH | oklch(36.42% 0.157 267.3) |
| XYZ | xyz(6.5065, 4.4121, 26.4900) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.33
Blueberry
#464196
ΔE00 6.64
Royal
#0C1793
ΔE00 6.92
Darkslateblue
#483D8B
ΔE00 6.96
Midnight Blue
#191970
ΔE00 7.64
Darkish Blue
#014182
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B318F #8F791B
analogous
#1B6B8F #1B318F #3F1B8F
triadic
#1B318F #8F1B31 #318F1B
tetradic
#1B318F #8F1B6B #8F791B #1B8F3F
square
#1B318F #8F1B6B #8F791B #1B8F3F
split-complementary
#1B318F #8F3F1B #6B8F1B
monochromatic
#080E28 #111F5C #1B318F #2543C2 #4864DC
Accessibility & contrast
On white
11.15
#1B318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1B318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B318F
11.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B318F | 1.00 | 11.15 | 1.88 | 11.15 |
| #FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1b318f; /* rgb */ color: rgb(27, 49, 143); /* oklch */ color: oklch(36.4% 0.157 267.3);
Tailwind
colors: {
custom: {
50: '#6d69b1',
500: '#1b318f',
950: '#000000',
},
}SCSS
$custom: #1b318f; $custom-light: #6d69b1; $custom-dark: #000000;
JSON
{
"hex": "#1b318f",
"rgb": {
"r": 27,
"g": 49,
"b": 143
},
"hsl": {
"h": 228.621,
"s": 68.235,
"l": 33.333
},
"oklch": {
"l": 0.36421,
"c": 0.15699,
"h": 267.3
},
"luminance": 0.04413
}Semantic roles & 50–950 ramp
primary
#1B318F
secondary
#BEA848
accent
#CA3DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80