#1B338A#1B338A
#1B338A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.148 H 266.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #1B338A |
|---|---|
| RGB | rgb(27, 51, 138) |
| HSL | hsl(227, 67%, 32%) |
| HSV | hsv(227, 80%, 54%) |
| CMYK | cmyk(80.4%, 63%, 0%, 45.9%) |
| CIE-LAB | lab(25.06, 24.53, -50.97) |
| CIE-LCH | lch(25.06, 56.56, 295.70°) |
| OKLab | oklab(36.33% -0.0084 -0.1474) |
| OKLCH | oklch(36.33% 0.148 266.7) |
| XYZ | xyz(6.2217, 4.4349, 24.5680) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.97
Blueberry
#464196
ΔE00 6.64
Darkish Blue
#014182
ΔE00 6.91
Darkslateblue
#483D8B
ΔE00 6.92
Cobalt (survey)
#1E488F
ΔE00 7.23
Marine
#042E60
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B338A #8A721B
analogous
#1B6B8A #1B338A #3A1B8A
triadic
#1B338A #8A1B33 #338A1B
tetradic
#1B338A #8A1B6B #8A721B #1B8A3A
square
#1B338A #8A1B6B #8A721B #1B8A3A
split-complementary
#1B338A #8A3A1B #6B8A1B
monochromatic
#070D24 #112057 #1B338A #2546BD #4565DB
Accessibility & contrast
On white
11.13
#1B338A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#1B338A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B338A
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B338A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B338A | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1b338a; /* rgb */ color: rgb(27, 51, 138); /* oklch */ color: oklch(36.3% 0.148 266.7);
Tailwind
colors: {
custom: {
50: '#6b6aad',
500: '#1b338a',
950: '#000000',
},
}SCSS
$custom: #1b338a; $custom-light: #6b6aad; $custom-dark: #000000;
JSON
{
"hex": "#1b338a",
"rgb": {
"r": 27,
"g": 51,
"b": 138
},
"hsl": {
"h": 227.027,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.36332,
"c": 0.14762,
"h": 266.7
},
"luminance": 0.04436
}Semantic roles & 50–950 ramp
primary
#1B338A
secondary
#BCA245
accent
#C53EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F