#1B218F#1B218F
#1B218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.175 H 270.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1B218F |
|---|---|
| RGB | rgb(27, 33, 143) |
| HSL | hsl(237, 68%, 33%) |
| HSV | hsv(237, 81%, 56%) |
| CMYK | cmyk(81.1%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(21.22, 38.13, -60.39) |
| CIE-LCH | lch(21.22, 71.42, 302.26°) |
| OKLab | oklab(33.69% 0.0002 -0.1749) |
| OKLCH | oklch(33.69% 0.175 270.1) |
| XYZ | xyz(5.9521, 3.3032, 26.3052) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.36
Midnight Blue
#191970
ΔE00 4.92
Cobalt Blue
#030AA7
ΔE00 4.99
Royal Blue (survey)
#0504AA
ΔE00 5.61
Darkblue
#00008B
ΔE00 5.86
Indigo Blue
#3A18B1
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B218F #8F891B
analogous
#1B5B8F #1B218F #4F1B8F
triadic
#1B218F #8F1B21 #218F1B
tetradic
#1B218F #8F1B5B #8F891B #1B8F4F
square
#1B218F #8F1B5B #8F891B #1B8F4F
split-complementary
#1B218F #8F4F1B #5B8F1B
monochromatic
#080928 #11155C #1B218F #252DC2 #4850DC
Accessibility & contrast
On white
12.64
#1B218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#1B218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B218F
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B218F | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1b218f; /* rgb */ color: rgb(27, 33, 143); /* oklch */ color: oklch(33.7% 0.175 270.1);
Tailwind
colors: {
custom: {
50: '#6e5eb1',
500: '#1b218f',
950: '#000000',
},
}SCSS
$custom: #1b218f; $custom-light: #6e5eb1; $custom-dark: #000000;
JSON
{
"hex": "#1b218f",
"rgb": {
"r": 27,
"g": 33,
"b": 143
},
"hsl": {
"h": 236.897,
"s": 68.235,
"l": 33.333
},
"oklch": {
"l": 0.33694,
"c": 0.17493,
"h": 270.1
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#1B218F
secondary
#BEB848
accent
#E23DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980