#1B228B#1B228B
#1B228B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.169 H 270.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1B228B |
|---|---|
| RGB | rgb(27, 34, 139) |
| HSL | hsl(236, 67%, 33%) |
| HSV | hsv(236, 81%, 55%) |
| CMYK | cmyk(80.6%, 75.5%, 0%, 45.5%) |
| CIE-LAB | lab(20.98, 36.10, -58.29) |
| CIE-LCH | lch(20.98, 68.57, 301.77°) |
| OKLab | oklab(33.39% 0.0005 -0.1688) |
| OKLCH | oklch(33.39% 0.169 270.2) |
| XYZ | xyz(5.6826, 3.2405, 24.7471) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Midnight Blue
#191970
ΔE00 4.46
Cobalt Blue
#030AA7
ΔE00 5.63
Darkblue
#00008B
ΔE00 6.17
Royal Blue (survey)
#0504AA
ΔE00 6.25
Navy
#000080
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B228B #8B841B
analogous
#1B5A8B #1B228B #4C1B8B
triadic
#1B228B #8B1B22 #228B1B
tetradic
#1B228B #8B1B5A #8B841B #1B8B4C
square
#1B228B #8B1B5A #8B841B #1B8B4C
split-complementary
#1B228B #8B4C1B #5A8B1B
monochromatic
#070925 #111558 #1B228B #252FBE #454FDB
Accessibility & contrast
On white
12.74
#1B228B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1B228B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B228B
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B228B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B228B | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1b228b; /* rgb */ color: rgb(27, 34, 139); /* oklch */ color: oklch(33.4% 0.169 270.2);
Tailwind
colors: {
custom: {
50: '#6d5eae',
500: '#1b228b',
950: '#000000',
},
}SCSS
$custom: #1b228b; $custom-light: #6d5eae; $custom-dark: #000000;
JSON
{
"hex": "#1b228b",
"rgb": {
"r": 27,
"g": 34,
"b": 139
},
"hsl": {
"h": 236.25,
"s": 67.47,
"l": 32.549
},
"oklch": {
"l": 0.33392,
"c": 0.16883,
"h": 270.2
},
"luminance": 0.03241
}Semantic roles & 50–950 ramp
primary
#1B228B
secondary
#BCB545
accent
#E03DEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F