#1B1796#1B1796
#1B1796 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.2% C 0.192 H 270.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1B1796 |
|---|---|
| RGB | rgb(27, 23, 150) |
| HSL | hsl(242, 73%, 34%) |
| HSV | hsv(242, 85%, 59%) |
| CMYK | cmyk(82%, 84.7%, 0%, 41.2%) |
| CIE-LAB | lab(20.23, 45.77, -66.37) |
| CIE-LCH | lch(20.23, 80.62, 304.59°) |
| OKLab | oklab(33.25% 0.0016 -0.1921) |
| OKLCH | oklch(33.25% 0.192 270.5) |
| XYZ | xyz(6.2615, 3.0471, 29.1064) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.00
Cobalt Blue
#030AA7
ΔE00 2.74
Royal Blue (survey)
#0504AA
ΔE00 3.31
Darkblue
#00008B
ΔE00 4.00
Ultramarine
#2000B1
ΔE00 4.19
Indigo Blue
#3A18B1
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B1796 #929617
analogous
#175396 #1B1796 #5B1796
triadic
#1B1796 #961B17 #17961B
tetradic
#1B1796 #961753 #929617 #17965B
square
#1B1796 #961753 #929617 #17965B
split-complementary
#1B1796 #965B17 #539617
monochromatic
#08072C #110F61 #1B1796 #251FCB #4A45E2
Accessibility & contrast
On white
13.05
#1B1796 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1B1796 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B1796
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B1796 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B1796 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002A94
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1b1796; /* rgb */ color: rgb(27, 23, 150); /* oklch */ color: oklch(33.2% 0.192 270.5);
Tailwind
colors: {
custom: {
50: '#7158b6',
500: '#1b1796',
950: '#000000',
},
}SCSS
$custom: #1b1796; $custom-light: #7158b6; $custom-dark: #000000;
JSON
{
"hex": "#1b1796",
"rgb": {
"r": 27,
"g": 23,
"b": 150
},
"hsl": {
"h": 241.89,
"s": 73.41,
"l": 33.922
},
"oklch": {
"l": 0.33247,
"c": 0.19209,
"h": 270.5
},
"luminance": 0.03048
}Semantic roles & 50–950 ramp
primary
#1B1796
secondary
#BFC345
accent
#F038EA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980