#1B238E#1B238E
#1B238E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.172 H 269.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1B238E |
|---|---|
| RGB | rgb(27, 35, 142) |
| HSL | hsl(236, 68%, 33%) |
| HSV | hsv(236, 81%, 56%) |
| CMYK | cmyk(81%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(21.53, 36.57, -59.25) |
| CIE-LCH | lch(21.53, 69.63, 301.68°) |
| OKLab | oklab(33.88% -0.0004 -0.1716) |
| OKLCH | oklch(33.88% 0.172 269.9) |
| XYZ | xyz(5.9338, 3.3874, 25.9270) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.89
Midnight Blue
#191970
ΔE00 4.94
Cobalt Blue
#030AA7
ΔE00 5.50
Royal Blue (survey)
#0504AA
ΔE00 6.12
Darkblue
#00008B
ΔE00 6.38
Indigo Blue
#3A18B1
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B238E #8E861B
analogous
#1B5C8E #1B238E #4C1B8E
triadic
#1B238E #8E1B23 #238E1B
tetradic
#1B238E #8E1B5C #8E861B #1B8E4C
square
#1B238E #8E1B5C #8E861B #1B8E4C
split-complementary
#1B238E #8E4C1B #5C8E1B
monochromatic
#070A27 #11165B #1B238E #2530C1 #4752DC
Accessibility & contrast
On white
12.52
#1B238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1B238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B238E
12.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B238E | 1.00 | 12.52 | 1.68 | 12.52 |
| #FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1b238e; /* rgb */ color: rgb(27, 35, 142); /* oklch */ color: oklch(33.9% 0.172 269.9);
Tailwind
colors: {
custom: {
50: '#6e5fb0',
500: '#1b238e',
950: '#000000',
},
}SCSS
$custom: #1b238e; $custom-light: #6e5fb0; $custom-dark: #000000;
JSON
{
"hex": "#1b238e",
"rgb": {
"r": 27,
"g": 35,
"b": 142
},
"hsl": {
"h": 235.826,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.33884,
"c": 0.17163,
"h": 269.9
},
"luminance": 0.03388
}Semantic roles & 50–950 ramp
primary
#1B238E
secondary
#BEB547
accent
#DF3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980