#1B2172#1B2172
#1B2172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.137 H 271.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1B2172 |
|---|---|
| RGB | rgb(27, 33, 114) |
| HSL | hsl(236, 62%, 28%) |
| HSV | hsv(236, 76%, 45%) |
| CMYK | cmyk(76.3%, 71.1%, 0%, 55.3%) |
| CIE-LAB | lab(18.08, 27.50, -47.21) |
| CIE-LCH | lch(18.08, 54.63, 300.22°) |
| OKLab | oklab(30.5% 0.0045 -0.1365) |
| OKLCH | oklch(30.5% 0.137 271.9) |
| XYZ | xyz(4.0321, 2.5352, 16.1932) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.26
Royal
#0C1793
ΔE00 5.98
Dark Royal Blue
#02066F
ΔE00 6.34
Darkblue (survey)
#030764
ΔE00 6.39
Deep Blue
#040273
ΔE00 7.02
Navy
#000080
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B2172 #726C1B
analogous
#1B4C72 #1B2172 #401B72
triadic
#1B2172 #721B21 #21721B
tetradic
#1B2172 #721B4C #726C1B #1B7240
square
#1B2172 #721B4C #726C1B #1B7240
split-complementary
#1B2172 #72401B #4C721B
monochromatic
#060719 #0F1341 #1B2172 #272FA3 #3842D0
Accessibility & contrast
On white
13.93
#1B2172 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1B2172 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B2172
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B2172 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B2172 | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b2172; /* rgb */ color: rgb(27, 33, 114); /* oklch */ color: oklch(30.5% 0.137 271.9);
Tailwind
colors: {
custom: {
50: '#665c9b',
500: '#1b2172',
950: '#000000',
},
}SCSS
$custom: #1b2172; $custom-light: #665c9b; $custom-dark: #000000;
JSON
{
"hex": "#1b2172",
"rgb": {
"r": 27,
"g": 33,
"b": 114
},
"hsl": {
"h": 235.862,
"s": 61.702,
"l": 27.647
},
"oklch": {
"l": 0.30503,
"c": 0.1366,
"h": 271.9
},
"luminance": 0.02536
}Semantic roles & 50–950 ramp
primary
#1B2172
secondary
#A7A042
accent
#DA43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E