#5162BD#5162BD
#5162BD is a mid, vivid blue. Relative luminance 0.142; OKLCH L 52.9% C 0.143 H 272.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #5162BD |
|---|---|
| RGB | rgb(81, 98, 189) |
| HSL | hsl(231, 45%, 53%) |
| HSV | hsv(231, 57%, 74%) |
| CMYK | cmyk(57.1%, 48.1%, 0%, 25.9%) |
| CIE-LAB | lab(44.46, 20.80, -50.04) |
| CIE-LCH | lch(44.46, 54.19, 292.58°) |
| OKLab | oklab(52.9% 0.0066 -0.1428) |
| OKLCH | oklch(52.9% 0.143 272.6) |
| XYZ | xyz(16.9433, 14.1576, 49.9741) |
| Luminance | 0.1416 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.31
Iris
#6258C4
ΔE00 5.44
Warm Blue
#4B57DB
ΔE00 5.46
Royal Blue
#4169E1
ΔE00 5.62
French Blue
#436BAD
ΔE00 5.70
Cornflower Blue
#5170D7
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162BD #BDAC51
analogous
#5198BD #5162BD #7651BD
triadic
#5162BD #BD5162 #62BD51
tetradic
#5162BD #BD5198 #BDAC51 #51BD76
square
#5162BD #BD5198 #BDAC51 #51BD76
split-complementary
#5162BD #BD7651 #98BD51
monochromatic
#29336B #394897 #5162BD #7D8ACE #AAB2DF
Accessibility & contrast
On white
5.48
#5162BD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#5162BD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162BD
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162BD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162BD | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#366EC0
Deuteranopia (green-blind)
#2665BB
Tritanopia (blue-blind)
#0A7686
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5162bd; /* rgb */ color: rgb(81, 98, 189); /* oklch */ color: oklch(52.9% 0.143 272.6);
Tailwind
colors: {
custom: {
50: '#8a8ed1',
500: '#5162bd',
950: '#000000',
},
}SCSS
$custom: #5162bd; $custom-light: #8a8ed1; $custom-dark: #000000;
JSON
{
"hex": "#5162bd",
"rgb": {
"r": 81,
"g": 98,
"b": 189
},
"hsl": {
"h": 230.556,
"s": 45,
"l": 52.941
},
"oklch": {
"l": 0.52901,
"c": 0.14297,
"h": 272.6
},
"luminance": 0.14159
}Semantic roles & 50–950 ramp
primary
#5162BD
secondary
#CCC59E
accent
#C053D5
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0D0C14
muted
#7D7D82