#5162BC#5162BC
#5162BC is a mid, vivid blue. Relative luminance 0.141; OKLCH L 52.8% C 0.142 H 272.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #5162BC |
|---|---|
| RGB | rgb(81, 98, 188) |
| HSL | hsl(230, 44%, 53%) |
| HSV | hsv(230, 57%, 74%) |
| CMYK | cmyk(56.9%, 47.9%, 0%, 26.3%) |
| CIE-LAB | lab(44.40, 20.47, -49.55) |
| CIE-LCH | lch(44.40, 53.62, 292.45°) |
| OKLab | oklab(52.83% 0.0065 -0.1414) |
| OKLCH | oklch(52.83% 0.142 272.6) |
| XYZ | xyz(16.8352, 14.1143, 49.4044) |
| Luminance | 0.1412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.41
Iris
#6258C4
ΔE00 5.50
Warm Blue
#4B57DB
ΔE00 5.57
French Blue
#436BAD
ΔE00 5.65
Royal Blue
#4169E1
ΔE00 5.73
Dusky Blue
#475F94
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162BC #BCAB51
analogous
#5198BC #5162BC #7551BC
triadic
#5162BC #BC5162 #62BC51
tetradic
#5162BC #BC5198 #BCAB51 #51BC75
square
#5162BC #BC5198 #BCAB51 #51BC75
split-complementary
#5162BC #BC7551 #98BC51
monochromatic
#29336A #3A4896 #5162BC #7D8ACD #A9B2DE
Accessibility & contrast
On white
5.49
#5162BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#5162BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162BC
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162BC | 1.00 | 5.49 | 3.82 | 5.49 |
| #FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#376EBF
Deuteranopia (green-blind)
#2765BA
Tritanopia (blue-blind)
#0D7686
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5162bc; /* rgb */ color: rgb(81, 98, 188); /* oklch */ color: oklch(52.8% 0.142 272.6);
Tailwind
colors: {
custom: {
50: '#8a8ed1',
500: '#5162bc',
950: '#000000',
},
}SCSS
$custom: #5162bc; $custom-light: #8a8ed1; $custom-dark: #000000;
JSON
{
"hex": "#5162bc",
"rgb": {
"r": 81,
"g": 98,
"b": 188
},
"hsl": {
"h": 230.467,
"s": 44.398,
"l": 52.745
},
"oklch": {
"l": 0.52834,
"c": 0.14155,
"h": 272.6
},
"luminance": 0.14116
}Semantic roles & 50–950 ramp
primary
#5162BC
secondary
#CCC49D
accent
#C054D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82