#1B398E#1B398E
#1B398E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.146 H 265.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1B398E |
|---|---|
| RGB | rgb(27, 57, 142) |
| HSL | hsl(224, 68%, 33%) |
| HSV | hsv(224, 81%, 56%) |
| CMYK | cmyk(81%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(27.05, 21.97, -50.20) |
| CIE-LCH | lch(27.05, 54.79, 293.63°) |
| OKLab | oklab(37.92% -0.0123 -0.145) |
| OKLCH | oklch(37.92% 0.146 265.2) |
| XYZ | xyz(6.7959, 5.1115, 26.2144) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.69
Cobalt (survey)
#1E488F
ΔE00 5.28
Darkish Blue
#014182
ΔE00 5.33
Cobalt
#0047AB
ΔE00 5.78
Blueberry
#464196
ΔE00 6.26
Twilight Blue
#0A437A
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B398E #8E701B
analogous
#1B728E #1B398E #371B8E
triadic
#1B398E #8E1B39 #398E1B
tetradic
#1B398E #8E1B72 #8E701B #1B8E37
square
#1B398E #8E1B72 #8E701B #1B8E37
split-complementary
#1B398E #8E371B #728E1B
monochromatic
#071027 #11245B #1B398E #254EC1 #476EDC
Accessibility & contrast
On white
10.38
#1B398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#1B398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B398E
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B398E | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1b398e; /* rgb */ color: rgb(27, 57, 142); /* oklch */ color: oklch(37.9% 0.146 265.2);
Tailwind
colors: {
custom: {
50: '#6c6eb0',
500: '#1b398e',
950: '#000000',
},
}SCSS
$custom: #1b398e; $custom-light: #6c6eb0; $custom-dark: #000000;
JSON
{
"hex": "#1b398e",
"rgb": {
"r": 27,
"g": 57,
"b": 142
},
"hsl": {
"h": 224.348,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.37923,
"c": 0.14555,
"h": 265.2
},
"luminance": 0.05112
}Semantic roles & 50–950 ramp
primary
#1B398E
secondary
#BE9F47
accent
#BE3DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F