#1B338E#1B338E
#1B338E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.153 H 266.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1B338E |
|---|---|
| RGB | rgb(27, 51, 142) |
| HSL | hsl(227, 68%, 33%) |
| HSV | hsv(227, 81%, 56%) |
| CMYK | cmyk(81%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.42, 26.10, -52.86) |
| CIE-LCH | lch(25.42, 58.95, 296.28°) |
| OKLab | oklab(36.71% -0.0084 -0.1529) |
| OKLCH | oklch(36.71% 0.153 266.8) |
| XYZ | xyz(6.5166, 4.5529, 26.1213) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.38
Blueberry
#464196
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 6.87
Darkish Blue
#014182
ΔE00 7.19
Cobalt (survey)
#1E488F
ΔE00 7.35
Cobalt
#0047AB
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B338E #8E761B
analogous
#1B6C8E #1B338E #3C1B8E
triadic
#1B338E #8E1B33 #338E1B
tetradic
#1B338E #8E1B6C #8E761B #1B8E3C
square
#1B338E #8E1B6C #8E761B #1B8E3C
split-complementary
#1B338E #8E3C1B #6C8E1B
monochromatic
#070E27 #11215B #1B338E #2545C1 #4766DC
Accessibility & contrast
On white
10.99
#1B338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#1B338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B338E
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B338E | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1b338e; /* rgb */ color: rgb(27, 51, 142); /* oklch */ color: oklch(36.7% 0.153 266.8);
Tailwind
colors: {
custom: {
50: '#6c6ab0',
500: '#1b338e',
950: '#000000',
},
}SCSS
$custom: #1b338e; $custom-light: #6c6ab0; $custom-dark: #000000;
JSON
{
"hex": "#1b338e",
"rgb": {
"r": 27,
"g": 51,
"b": 142
},
"hsl": {
"h": 227.478,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.36711,
"c": 0.15315,
"h": 266.8
},
"luminance": 0.04554
}Semantic roles & 50–950 ramp
primary
#1B338E
secondary
#BEA547
accent
#C73DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80