#1B51B4#1B51B4
#1B51B4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.167 H 261.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #1B51B4 |
|---|---|
| RGB | rgb(27, 81, 180) |
| HSL | hsl(219, 74%, 41%) |
| HSV | hsv(219, 85%, 71%) |
| CMYK | cmyk(85%, 55%, 0%, 29.4%) |
| CIE-LAB | lab(36.77, 20.79, -57.31) |
| CIE-LCH | lch(36.77, 60.96, 289.94°) |
| OKLab | oklab(46.2% -0.0253 -0.1655) |
| OKLCH | oklch(46.2% 0.167 261.3) |
| XYZ | xyz(11.6297, 9.4117, 44.3749) |
| Luminance | 0.0941 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 0.87
Cobalt
#0047AB
ΔE00 3.33
Dusk Blue
#26538D
ΔE00 5.06
Cobalt (survey)
#1E488F
ΔE00 5.35
Denim
#1560BD
ΔE00 5.45
Denim Blue
#3B5B92
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1B51B4 #B47E1B
analogous
#1B9DB4 #1B51B4 #321BB4
triadic
#1B51B4 #B41B51 #51B41B
tetradic
#1B51B4 #B41B9D #B47E1B #1BB432
square
#1B51B4 #B41B9D #B47E1B #1BB432
split-complementary
#1B51B4 #B4321B #9DB41B
monochromatic
#0B214A #13397F #1B51B4 #2D6CDF #6291E7
Accessibility & contrast
On white
7.29
#1B51B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#1B51B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1B51B4
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1B51B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1B51B4 | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #1b51b4; /* rgb */ color: rgb(27, 81, 180); /* oklch */ color: oklch(46.2% 0.167 261.3);
Tailwind
colors: {
custom: {
50: '#7481cb',
500: '#1b51b4',
950: '#000000',
},
}SCSS
$custom: #1b51b4; $custom-light: #7481cb; $custom-dark: #000000;
JSON
{
"hex": "#1b51b4",
"rgb": {
"r": 27,
"g": 81,
"b": 180
},
"hsl": {
"h": 218.824,
"s": 73.913,
"l": 40.588
},
"oklch": {
"l": 0.46202,
"c": 0.16741,
"h": 261.3
},
"luminance": 0.09413
}Semantic roles & 50–950 ramp
primary
#1B51B4
secondary
#CCA55F
accent
#AF37F1
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82