#1B226E#1B226E
#1B226E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.130 H 271.8°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1B226E |
|---|---|
| RGB | rgb(27, 34, 110) |
| HSL | hsl(235, 61%, 27%) |
| HSV | hsv(235, 75%, 43%) |
| CMYK | cmyk(75.5%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(17.93, 25.28, -44.86) |
| CIE-LCH | lch(17.93, 51.49, 299.40°) |
| OKLab | oklab(30.27% 0.0042 -0.1297) |
| OKLCH | oklch(30.27% 0.13 271.8) |
| XYZ | xyz(3.8375, 2.5025, 15.0296) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.84
Darkblue (survey)
#030764
ΔE00 6.74
Royal
#0C1793
ΔE00 6.83
Dark Royal Blue
#02066F
ΔE00 6.89
Marine
#042E60
ΔE00 7.46
Dark Indigo
#1F0954
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B226E #6E671B
analogous
#1B4C6E #1B226E #3E1B6E
triadic
#1B226E #6E1B22 #226E1B
tetradic
#1B226E #6E1B4C #6E671B #1B6E3E
square
#1B226E #6E1B4C #6E671B #1B6E3E
split-complementary
#1B226E #6E3E1B #4C6E1B
monochromatic
#060819 #0F133D #1B226E #27319F #3643CE
Accessibility & contrast
On white
13.99
#1B226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#1B226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B226E
13.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B226E | 1.00 | 13.99 | 1.50 | 13.99 |
| #FFFFFF | 13.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b226e; /* rgb */ color: rgb(27, 34, 110); /* oklch */ color: oklch(30.3% 0.130 271.8);
Tailwind
colors: {
custom: {
50: '#655d98',
500: '#1b226e',
950: '#000000',
},
}SCSS
$custom: #1b226e; $custom-light: #655d98; $custom-dark: #000000;
JSON
{
"hex": "#1b226e",
"rgb": {
"r": 27,
"g": 34,
"b": 110
},
"hsl": {
"h": 234.94,
"s": 60.584,
"l": 26.863
},
"oklch": {
"l": 0.30274,
"c": 0.12973,
"h": 271.8
},
"luminance": 0.02503
}Semantic roles & 50–950 ramp
primary
#1B226E
secondary
#A39B42
accent
#D644E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E