#1B338B#1B338B
#1B338B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.149 H 266.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #1B338B |
|---|---|
| RGB | rgb(27, 51, 139) |
| HSL | hsl(227, 67%, 33%) |
| HSV | hsv(227, 81%, 55%) |
| CMYK | cmyk(80.6%, 63.3%, 0%, 45.5%) |
| CIE-LAB | lab(25.15, 24.92, -51.44) |
| CIE-LCH | lch(25.15, 57.16, 295.85°) |
| OKLab | oklab(36.43% -0.0084 -0.1488) |
| OKLCH | oklch(36.43% 0.149 266.8) |
| XYZ | xyz(6.2944, 4.4640, 24.9510) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.82
Blueberry
#464196
ΔE00 6.59
Darkslateblue
#483D8B
ΔE00 6.90
Darkish Blue
#014182
ΔE00 6.98
Cobalt (survey)
#1E488F
ΔE00 7.26
Marine
#042E60
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B338B #8B731B
analogous
#1B6B8B #1B338B #3B1B8B
triadic
#1B338B #8B1B33 #338B1B
tetradic
#1B338B #8B1B6B #8B731B #1B8B3B
square
#1B338B #8B1B6B #8B731B #1B8B3B
split-complementary
#1B338B #8B3B1B #6B8B1B
monochromatic
#070D25 #112058 #1B338B #2546BE #4565DB
Accessibility & contrast
On white
11.09
#1B338B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#1B338B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B338B
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B338B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B338B | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1b338b; /* rgb */ color: rgb(27, 51, 139); /* oklch */ color: oklch(36.4% 0.149 266.8);
Tailwind
colors: {
custom: {
50: '#6b6aae',
500: '#1b338b',
950: '#000000',
},
}SCSS
$custom: #1b338b; $custom-light: #6b6aae; $custom-dark: #000000;
JSON
{
"hex": "#1b338b",
"rgb": {
"r": 27,
"g": 51,
"b": 139
},
"hsl": {
"h": 227.143,
"s": 67.47,
"l": 32.549
},
"oklch": {
"l": 0.36426,
"c": 0.14901,
"h": 266.8
},
"luminance": 0.04465
}Semantic roles & 50–950 ramp
primary
#1B338B
secondary
#BCA345
accent
#C53DEA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F