#1B2A7E#1B2A7E
#1B2A7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 269.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2A7E |
|---|---|
| RGB | rgb(27, 42, 126) |
| HSL | hsl(231, 65%, 30%) |
| HSV | hsv(231, 79%, 49%) |
| CMYK | cmyk(78.6%, 66.7%, 0%, 50.6%) |
| CIE-LAB | lab(21.56, 26.01, -49.17) |
| CIE-LCH | lch(21.56, 55.62, 297.88°) |
| OKLab | oklab(33.41% -0.0023 -0.1422) |
| OKLCH | oklch(33.41% 0.142 269.1) |
| XYZ | xyz(5.0446, 3.3947, 20.1240) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.02
Royal
#0C1793
ΔE00 6.31
Marine
#042E60
ΔE00 7.03
Sapphire (survey)
#2138AB
ΔE00 7.24
Darkslateblue
#483D8B
ΔE00 7.80
Blueberry
#464196
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2A7E #7E6F1B
analogous
#1B5C7E #1B2A7E #3D1B7E
triadic
#1B2A7E #7E1B2A #2A7E1B
tetradic
#1B2A7E #7E1B5C #7E6F1B #1B7E3D
square
#1B2A7E #7E1B5C #7E6F1B #1B7E3D
split-complementary
#1B2A7E #7E3D1B #5C7E1B
monochromatic
#050819 #10194C #1B2A7E #263BB0 #3E55D6
Accessibility & contrast
On white
12.51
#1B2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1B2A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2A7E
12.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2A7E | 1.00 | 12.51 | 1.68 | 12.51 |
| #FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1b2a7e; /* rgb */ color: rgb(27, 42, 126); /* oklch */ color: oklch(33.4% 0.142 269.1);
Tailwind
colors: {
custom: {
50: '#6963a4',
500: '#1b2a7e',
950: '#000000',
},
}SCSS
$custom: #1b2a7e; $custom-light: #6963a4; $custom-dark: #000000;
JSON
{
"hex": "#1b2a7e",
"rgb": {
"r": 27,
"g": 42,
"b": 126
},
"hsl": {
"h": 230.909,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.33406,
"c": 0.14222,
"h": 269.1
},
"luminance": 0.03395
}Semantic roles & 50–950 ramp
primary
#1B2A7E
secondary
#B2A143
accent
#CE40E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F