#1B218E#1B218E
#1B218E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.174 H 270.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #1B218E |
|---|---|
| RGB | rgb(27, 33, 142) |
| HSL | hsl(237, 68%, 33%) |
| HSV | hsv(237, 81%, 56%) |
| CMYK | cmyk(81%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(21.11, 37.77, -59.96) |
| CIE-LCH | lch(21.11, 70.87, 302.21°) |
| OKLab | oklab(33.58% 0.0004 -0.1737) |
| OKLCH | oklch(33.58% 0.174 270.1) |
| XYZ | xyz(5.8767, 3.2730, 25.9080) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.41
Midnight Blue
#191970
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.10
Royal Blue (survey)
#0504AA
ΔE00 5.71
Darkblue
#00008B
ΔE00 5.86
Indigo Blue
#3A18B1
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B218E #8E881B
analogous
#1B5A8E #1B218E #4F1B8E
triadic
#1B218E #8E1B21 #218E1B
tetradic
#1B218E #8E1B5A #8E881B #1B8E4F
square
#1B218E #8E1B5A #8E881B #1B8E4F
split-complementary
#1B218E #8E4F1B #5A8E1B
monochromatic
#070927 #11155B #1B218E #252DC1 #474FDC
Accessibility & contrast
On white
12.69
#1B218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1B218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B218E
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B218E | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1b218e; /* rgb */ color: rgb(27, 33, 142); /* oklch */ color: oklch(33.6% 0.174 270.1);
Tailwind
colors: {
custom: {
50: '#6e5eb0',
500: '#1b218e',
950: '#000000',
},
}SCSS
$custom: #1b218e; $custom-light: #6e5eb0; $custom-dark: #000000;
JSON
{
"hex": "#1b218e",
"rgb": {
"r": 27,
"g": 33,
"b": 142
},
"hsl": {
"h": 236.87,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.3358,
"c": 0.17367,
"h": 270.1
},
"luminance": 0.03274
}Semantic roles & 50–950 ramp
primary
#1B218E
secondary
#BEB847
accent
#E23DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980