#1B227A#1B227A
#1B227A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.146 H 271.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1B227A |
|---|---|
| RGB | rgb(27, 34, 122) |
| HSL | hsl(236, 64%, 29%) |
| HSV | hsv(236, 78%, 48%) |
| CMYK | cmyk(77.9%, 72.1%, 0%, 52.2%) |
| CIE-LAB | lab(19.15, 29.86, -50.58) |
| CIE-LCH | lch(19.15, 58.74, 300.55°) |
| OKLab | oklab(31.53% 0.0029 -0.1464) |
| OKLCH | oklch(31.53% 0.146 271.1) |
| XYZ | xyz(4.5357, 2.7817, 18.7065) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Royal
#0C1793
ΔE00 4.90
Dark Royal Blue
#02066F
ΔE00 6.43
Darkblue (survey)
#030764
ΔE00 6.83
Deep Blue
#040273
ΔE00 6.98
Navy
#000080
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B227A #7A731B
analogous
#1B527A #1B227A #441B7A
triadic
#1B227A #7A1B22 #227A1B
tetradic
#1B227A #7A1B52 #7A731B #1B7A44
square
#1B227A #7A1B52 #7A731B #1B7A44
split-complementary
#1B227A #7A441B #527A1B
monochromatic
#060719 #101448 #1B227A #2630AC #3C47D4
Accessibility & contrast
On white
13.49
#1B227A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1B227A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B227A
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B227A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B227A | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1b227a; /* rgb */ color: rgb(27, 34, 122); /* oklch */ color: oklch(31.5% 0.146 271.1);
Tailwind
colors: {
custom: {
50: '#685da1',
500: '#1b227a',
950: '#000000',
},
}SCSS
$custom: #1b227a; $custom-light: #685da1; $custom-dark: #000000;
JSON
{
"hex": "#1b227a",
"rgb": {
"r": 27,
"g": 34,
"b": 122
},
"hsl": {
"h": 235.579,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.31528,
"c": 0.14642,
"h": 271.1
},
"luminance": 0.02782
}Semantic roles & 50–950 ramp
primary
#1B227A
secondary
#AEA643
accent
#DB41E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F