#1B308E#1B308E
#1B308E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.157 H 267.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).
Color values
| HEX | #1B308E |
|---|---|
| RGB | rgb(27, 48, 142) |
| HSL | hsl(229, 68%, 33%) |
| HSV | hsv(229, 81%, 56%) |
| CMYK | cmyk(81%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(24.64, 28.15, -54.14) |
| CIE-LCH | lch(24.64, 61.02, 297.47°) |
| OKLab | oklab(36.13% -0.0066 -0.1567) |
| OKLCH | oklch(36.13% 0.157 267.6) |
| XYZ | xyz(6.3897, 4.2992, 26.0790) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.55
Royal
#0C1793
ΔE00 6.66
Blueberry
#464196
ΔE00 6.80
Darkslateblue
#483D8B
ΔE00 7.03
Midnight Blue
#191970
ΔE00 7.33
Darkish Blue
#014182
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B308E #8E791B
analogous
#1B6A8E #1B308E #3F1B8E
triadic
#1B308E #8E1B30 #308E1B
tetradic
#1B308E #8E1B6A #8E791B #1B8E3F
square
#1B308E #8E1B6A #8E791B #1B8E3F
split-complementary
#1B308E #8E3F1B #6A8E1B
monochromatic
#070D27 #111F5B #1B308E #2541C1 #4762DC
Accessibility & contrast
On white
11.29
#1B308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#1B308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B308E
11.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B308E | 1.00 | 11.29 | 1.86 | 11.29 |
| #FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1b308e; /* rgb */ color: rgb(27, 48, 142); /* oklch */ color: oklch(36.1% 0.157 267.6);
Tailwind
colors: {
custom: {
50: '#6c68b0',
500: '#1b308e',
950: '#000000',
},
}SCSS
$custom: #1b308e; $custom-light: #6c68b0; $custom-dark: #000000;
JSON
{
"hex": "#1b308e",
"rgb": {
"r": 27,
"g": 48,
"b": 142
},
"hsl": {
"h": 229.043,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.36132,
"c": 0.15685,
"h": 267.6
},
"luminance": 0.043
}Semantic roles & 50–950 ramp
primary
#1B308E
secondary
#BEA847
accent
#CB3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80