#1B2D7E#1B2D7E
#1B2D7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.138 H 268.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2D7E |
|---|---|
| RGB | rgb(27, 45, 126) |
| HSL | hsl(229, 65%, 30%) |
| HSV | hsv(229, 79%, 49%) |
| CMYK | cmyk(78.6%, 64.3%, 0%, 50.6%) |
| CIE-LAB | lab(22.36, 23.93, -47.86) |
| CIE-LCH | lch(22.36, 53.51, 296.56°) |
| OKLab | oklab(33.99% -0.0043 -0.1383) |
| OKLCH | oklch(33.99% 0.138 268.2) |
| XYZ | xyz(5.1550, 3.6156, 20.1608) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.97
Marine
#042E60
ΔE00 6.40
Sapphire (survey)
#2138AB
ΔE00 6.98
Royal
#0C1793
ΔE00 7.19
Darkslateblue
#483D8B
ΔE00 7.53
Marine Blue
#01386A
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2D7E #7E6C1B
analogous
#1B5E7E #1B2D7E #3B1B7E
triadic
#1B2D7E #7E1B2D #2D7E1B
tetradic
#1B2D7E #7E1B5E #7E6C1B #1B7E3B
square
#1B2D7E #7E1B5E #7E6C1B #1B7E3B
split-complementary
#1B2D7E #7E3B1B #5E7E1B
monochromatic
#050919 #101B4C #1B2D7E #263FB0 #3E59D6
Accessibility & contrast
On white
12.19
#1B2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1B2D7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2D7E
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2D7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2D7E | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1b2d7e; /* rgb */ color: rgb(27, 45, 126); /* oklch */ color: oklch(34.0% 0.138 268.2);
Tailwind
colors: {
custom: {
50: '#6865a4',
500: '#1b2d7e',
950: '#000000',
},
}SCSS
$custom: #1b2d7e; $custom-light: #6865a4; $custom-dark: #000000;
JSON
{
"hex": "#1b2d7e",
"rgb": {
"r": 27,
"g": 45,
"b": 126
},
"hsl": {
"h": 229.091,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.33994,
"c": 0.13842,
"h": 268.2
},
"luminance": 0.03616
}Semantic roles & 50–950 ramp
primary
#1B2D7E
secondary
#B29E43
accent
#C940E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F