#1B226F#1B226F
#1B226F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.131 H 271.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1B226F |
|---|---|
| RGB | rgb(27, 34, 111) |
| HSL | hsl(235, 61%, 27%) |
| HSV | hsv(235, 76%, 44%) |
| CMYK | cmyk(75.7%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(18.03, 25.67, -45.35) |
| CIE-LCH | lch(18.03, 52.11, 299.51°) |
| OKLab | oklab(30.38% 0.0041 -0.1311) |
| OKLCH | oklch(30.38% 0.131 271.8) |
| XYZ | xyz(3.8923, 2.5244, 15.3180) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 6.66
Darkblue (survey)
#030764
ΔE00 6.72
Dark Royal Blue
#02066F
ΔE00 6.82
Marine
#042E60
ΔE00 7.54
Deep Blue
#040273
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B226F #6F681B
analogous
#1B4C6F #1B226F #3E1B6F
triadic
#1B226F #6F1B22 #226F1B
tetradic
#1B226F #6F1B4C #6F681B #1B6F3E
square
#1B226F #6F1B4C #6F681B #1B6F3E
split-complementary
#1B226F #6F3E1B #4C6F1B
monochromatic
#060819 #0F133E #1B226F #2731A0 #3643CE
Accessibility & contrast
On white
13.95
#1B226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1B226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B226F
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B226F | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1b226f; /* rgb */ color: rgb(27, 34, 111); /* oklch */ color: oklch(30.4% 0.131 271.8);
Tailwind
colors: {
custom: {
50: '#655d99',
500: '#1b226f',
950: '#000000',
},
}SCSS
$custom: #1b226f; $custom-light: #655d99; $custom-dark: #000000;
JSON
{
"hex": "#1b226f",
"rgb": {
"r": 27,
"g": 34,
"b": 111
},
"hsl": {
"h": 235,
"s": 60.87,
"l": 27.059
},
"oklch": {
"l": 0.30376,
"c": 0.13115,
"h": 271.8
},
"luminance": 0.02525
}Semantic roles & 50–950 ramp
primary
#1B226F
secondary
#A49C42
accent
#D744E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E