#1B238C#1B238C
#1B238C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.169 H 270.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1B238C |
|---|---|
| RGB | rgb(27, 35, 140) |
| HSL | hsl(236, 68%, 33%) |
| HSV | hsv(236, 81%, 55%) |
| CMYK | cmyk(80.7%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(21.31, 35.85, -58.37) |
| CIE-LCH | lch(21.31, 68.50, 301.56°) |
| OKLab | oklab(33.66% -0.0001 -0.1691) |
| OKLCH | oklch(33.66% 0.169 270) |
| XYZ | xyz(5.7850, 3.3279, 25.1433) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Midnight Blue
#191970
ΔE00 4.68
Cobalt Blue
#030AA7
ΔE00 5.72
Royal Blue (survey)
#0504AA
ΔE00 6.34
Darkblue
#00008B
ΔE00 6.41
Indigo Blue
#3A18B1
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B238C #8C841B
analogous
#1B5C8C #1B238C #4B1B8C
triadic
#1B238C #8C1B23 #238C1B
tetradic
#1B238C #8C1B5C #8C841B #1B8C4B
square
#1B238C #8C1B5C #8C841B #1B8C4B
split-complementary
#1B238C #8C4B1B #5C8C1B
monochromatic
#070925 #111659 #1B238C #2530BF #4651DB
Accessibility & contrast
On white
12.61
#1B238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1B238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B238C
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B238C | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1b238c; /* rgb */ color: rgb(27, 35, 140); /* oklch */ color: oklch(33.7% 0.169 270.0);
Tailwind
colors: {
custom: {
50: '#6d5faf',
500: '#1b238c',
950: '#000000',
},
}SCSS
$custom: #1b238c; $custom-light: #6d5faf; $custom-dark: #000000;
JSON
{
"hex": "#1b238c",
"rgb": {
"r": 27,
"g": 35,
"b": 140
},
"hsl": {
"h": 235.752,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.3366,
"c": 0.16907,
"h": 270
},
"luminance": 0.03329
}Semantic roles & 50–950 ramp
primary
#1B238C
secondary
#BDB446
accent
#DE3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F