#1B2872#1B2872
#1B2872 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 269.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2872 |
|---|---|
| RGB | rgb(27, 40, 114) |
| HSL | hsl(231, 62%, 28%) |
| HSV | hsv(231, 76%, 45%) |
| CMYK | cmyk(76.3%, 64.9%, 0%, 55.3%) |
| CIE-LAB | lab(19.90, 22.67, -44.22) |
| CIE-LCH | lch(19.90, 49.69, 297.14°) |
| OKLab | oklab(31.84% -0.0004 -0.1277) |
| OKLCH | oklch(31.84% 0.128 269.8) |
| XYZ | xyz(4.2470, 2.9651, 16.2648) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.61
Marine
#042E60
ΔE00 6.09
Royal
#0C1793
ΔE00 7.48
Navy Blue
#1B2A4A
ΔE00 8.30
Marine Blue
#01386A
ΔE00 8.30
Darkslateblue
#483D8B
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2872 #72651B
analogous
#1B5472 #1B2872 #391B72
triadic
#1B2872 #721B28 #28721B
tetradic
#1B2872 #721B54 #72651B #1B7239
square
#1B2872 #721B54 #72651B #1B7239
split-complementary
#1B2872 #72391B #54721B
monochromatic
#060919 #0F1741 #1B2872 #2739A3 #384ED0
Accessibility & contrast
On white
13.18
#1B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1B2872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2872
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2872 | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1b2872; /* rgb */ color: rgb(27, 40, 114); /* oklch */ color: oklch(31.8% 0.128 269.8);
Tailwind
colors: {
custom: {
50: '#66619b',
500: '#1b2872',
950: '#000000',
},
}SCSS
$custom: #1b2872; $custom-light: #66619b; $custom-dark: #000000;
JSON
{
"hex": "#1b2872",
"rgb": {
"r": 27,
"g": 40,
"b": 114
},
"hsl": {
"h": 231.034,
"s": 61.702,
"l": 27.647
},
"oklch": {
"l": 0.3184,
"c": 0.12772,
"h": 269.8
},
"luminance": 0.02966
}Semantic roles & 50–950 ramp
primary
#1B2872
secondary
#A79842
accent
#CD43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E