#1B318A#1B318A
#1B318A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.150 H 267.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #1B318A |
|---|---|
| RGB | rgb(27, 49, 138) |
| HSL | hsl(228, 67%, 32%) |
| HSV | hsv(228, 80%, 54%) |
| CMYK | cmyk(80.4%, 64.5%, 0%, 45.9%) |
| CIE-LAB | lab(24.53, 25.90, -51.84) |
| CIE-LCH | lch(24.53, 57.95, 296.55°) |
| OKLab | oklab(35.94% -0.0071 -0.15) |
| OKLCH | oklch(35.94% 0.15 267.3) |
| XYZ | xyz(6.1362, 4.2639, 24.5394) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.03
Blueberry
#464196
ΔE00 6.82
Darkslateblue
#483D8B
ΔE00 6.98
Royal
#0C1793
ΔE00 7.26
Midnight Blue
#191970
ΔE00 7.42
Marine
#042E60
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B318A #8A741B
analogous
#1B698A #1B318A #3C1B8A
triadic
#1B318A #8A1B31 #318A1B
tetradic
#1B318A #8A1B69 #8A741B #1B8A3C
square
#1B318A #8A1B69 #8A741B #1B8A3C
split-complementary
#1B318A #8A3C1B #698A1B
monochromatic
#070D24 #111F57 #1B318A #2543BD #4563DB
Accessibility & contrast
On white
11.33
#1B318A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1B318A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B318A
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B318A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B318A | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1b318a; /* rgb */ color: rgb(27, 49, 138); /* oklch */ color: oklch(35.9% 0.150 267.3);
Tailwind
colors: {
custom: {
50: '#6b68ad',
500: '#1b318a',
950: '#000000',
},
}SCSS
$custom: #1b318a; $custom-light: #6b68ad; $custom-dark: #000000;
JSON
{
"hex": "#1b318a",
"rgb": {
"r": 27,
"g": 49,
"b": 138
},
"hsl": {
"h": 228.108,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.35936,
"c": 0.15013,
"h": 267.3
},
"luminance": 0.04265
}Semantic roles & 50–950 ramp
primary
#1B318A
secondary
#BCA445
accent
#C83EEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F