#1B228F#1B228F
#1B228F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.174 H 270.0°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #1B228F |
|---|---|
| RGB | rgb(27, 34, 143) |
| HSL | hsl(236, 68%, 33%) |
| HSV | hsv(236, 81%, 56%) |
| CMYK | cmyk(81.1%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(21.43, 37.53, -60.04) |
| CIE-LCH | lch(21.43, 70.81, 302.01°) |
| OKLab | oklab(33.84% -0.0001 -0.1739) |
| OKLCH | oklch(33.84% 0.174 270) |
| XYZ | xyz(5.9803, 3.3596, 26.3146) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Midnight Blue
#191970
ΔE00 4.98
Cobalt Blue
#030AA7
ΔE00 5.19
Royal Blue (survey)
#0504AA
ΔE00 5.81
Darkblue
#00008B
ΔE00 6.11
Indigo Blue
#3A18B1
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B228F #8F881B
analogous
#1B5C8F #1B228F #4E1B8F
triadic
#1B228F #8F1B22 #228F1B
tetradic
#1B228F #8F1B5C #8F881B #1B8F4E
square
#1B228F #8F1B5C #8F881B #1B8F4E
split-complementary
#1B228F #8F4E1B #5C8F1B
monochromatic
#080A28 #11165C #1B228F #252EC2 #4851DC
Accessibility & contrast
On white
12.56
#1B228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1B228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B228F
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B228F | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1b228f; /* rgb */ color: rgb(27, 34, 143); /* oklch */ color: oklch(33.8% 0.174 270.0);
Tailwind
colors: {
custom: {
50: '#6e5eb1',
500: '#1b228f',
950: '#000000',
},
}SCSS
$custom: #1b228f; $custom-light: #6e5eb1; $custom-dark: #000000;
JSON
{
"hex": "#1b228f",
"rgb": {
"r": 27,
"g": 34,
"b": 143
},
"hsl": {
"h": 236.379,
"s": 68.235,
"l": 33.333
},
"oklch": {
"l": 0.33843,
"c": 0.17392,
"h": 270
},
"luminance": 0.0336
}Semantic roles & 50–950 ramp
primary
#1B228F
secondary
#BEB748
accent
#E13DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980