#1B307E#1B307E
#1B307E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.135 H 267.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1B307E |
|---|---|
| RGB | rgb(27, 48, 126) |
| HSL | hsl(227, 65%, 30%) |
| HSV | hsv(227, 79%, 49%) |
| CMYK | cmyk(78.6%, 61.9%, 0%, 50.6%) |
| CIE-LAB | lab(23.18, 21.83, -46.52) |
| CIE-LCH | lch(23.18, 51.39, 295.14°) |
| OKLab | oklab(34.6% -0.0064 -0.1344) |
| OKLCH | oklch(34.6% 0.135 267.3) |
| XYZ | xyz(5.2735, 3.8527, 20.2003) |
| Luminance | 0.0385 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.87
Marine Blue
#01386A
ΔE00 6.75
Sapphire (survey)
#2138AB
ΔE00 6.84
Midnight Blue
#191970
ΔE00 6.97
Darkish Blue
#014182
ΔE00 7.31
Darkslateblue
#483D8B
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B307E #7E691B
analogous
#1B617E #1B307E #381B7E
triadic
#1B307E #7E1B30 #307E1B
tetradic
#1B307E #7E1B61 #7E691B #1B7E38
square
#1B307E #7E1B61 #7E691B #1B7E38
split-complementary
#1B307E #7E381B #617E1B
monochromatic
#050A19 #101D4C #1B307E #2643B0 #3E5ED6
Accessibility & contrast
On white
11.86
#1B307E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1B307E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B307E
11.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B307E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B307E | 1.00 | 11.86 | 1.77 | 11.86 |
| #FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1b307e; /* rgb */ color: rgb(27, 48, 126); /* oklch */ color: oklch(34.6% 0.135 267.3);
Tailwind
colors: {
custom: {
50: '#6868a4',
500: '#1b307e',
950: '#000000',
},
}SCSS
$custom: #1b307e; $custom-light: #6868a4; $custom-dark: #000000;
JSON
{
"hex": "#1b307e",
"rgb": {
"r": 27,
"g": 48,
"b": 126
},
"hsl": {
"h": 227.273,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.34603,
"c": 0.13453,
"h": 267.3
},
"luminance": 0.03853
}Semantic roles & 50–950 ramp
primary
#1B307E
secondary
#B29A43
accent
#C440E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F