#1B2371#1B2371
#1B2371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.133 H 271.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2371 |
|---|---|
| RGB | rgb(27, 35, 113) |
| HSL | hsl(234, 61%, 27%) |
| HSV | hsv(234, 76%, 44%) |
| CMYK | cmyk(76.1%, 69%, 0%, 55.7%) |
| CIE-LAB | lab(18.48, 25.76, -45.90) |
| CIE-LCH | lch(18.48, 52.63, 299.30°) |
| OKLab | oklab(30.77% 0.0032 -0.1327) |
| OKLCH | oklch(30.77% 0.133 271.4) |
| XYZ | xyz(4.0327, 2.6269, 15.9141) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.96
Royal
#0C1793
ΔE00 6.52
Darkblue (survey)
#030764
ΔE00 6.99
Dark Royal Blue
#02066F
ΔE00 7.01
Marine
#042E60
ΔE00 7.42
Deep Blue
#040273
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2371 #71691B
analogous
#1B4E71 #1B2371 #3E1B71
triadic
#1B2371 #711B23 #23711B
tetradic
#1B2371 #711B4E #71691B #1B713E
square
#1B2371 #711B4E #71691B #1B713E
split-complementary
#1B2371 #713E1B #4E711B
monochromatic
#060819 #0F1440 #1B2371 #2732A2 #3745CF
Accessibility & contrast
On white
13.77
#1B2371 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1B2371 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2371
13.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2371 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2371 | 1.00 | 13.77 | 1.53 | 13.77 |
| #FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1b2371; /* rgb */ color: rgb(27, 35, 113); /* oklch */ color: oklch(30.8% 0.133 271.4);
Tailwind
colors: {
custom: {
50: '#665e9b',
500: '#1b2371',
950: '#000000',
},
}SCSS
$custom: #1b2371; $custom-light: #665e9b; $custom-dark: #000000;
JSON
{
"hex": "#1b2371",
"rgb": {
"r": 27,
"g": 35,
"b": 113
},
"hsl": {
"h": 234.419,
"s": 61.429,
"l": 27.451
},
"oklch": {
"l": 0.30768,
"c": 0.13273,
"h": 271.4
},
"luminance": 0.02627
}Semantic roles & 50–950 ramp
primary
#1B2371
secondary
#A69C42
accent
#D643E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E