#5162CB#5162CB
#5162CB is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.9% C 0.163 H 272.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #5162CB |
|---|---|
| RGB | rgb(81, 98, 203) |
| HSL | hsl(232, 54%, 56%) |
| HSV | hsv(232, 60%, 80%) |
| CMYK | cmyk(60.1%, 51.7%, 0%, 20.4%) |
| CIE-LAB | lab(45.35, 25.51, -56.69) |
| CIE-LCH | lch(45.35, 62.16, 294.23°) |
| OKLab | oklab(53.86% 0.008 -0.1624) |
| OKLCH | oklch(53.86% 0.163 272.8) |
| XYZ | xyz(18.5370, 14.7950, 58.3672) |
| Luminance | 0.1480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.08
Dark Periwinkle
#665FD1
ΔE00 4.23
Royal Blue
#4169E1
ΔE00 4.30
Iris
#6258C4
ΔE00 5.12
Cornflower Blue
#5170D7
ΔE00 5.21
Azul
#1D5DEC
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162CB #CBBA51
analogous
#519FCB #5162CB #7D51CB
triadic
#5162CB #CB5162 #62CB51
tetradic
#5162CB #CB519F #CBBA51 #51CB7D
square
#5162CB #CB519F #CBBA51 #51CB7D
split-complementary
#5162CB #CB7D51 #9FCB51
monochromatic
#25317C #3344AC #5162CB #808DD9 #AFB7E7
Accessibility & contrast
On white
5.30
#5162CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#5162CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162CB
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162CB | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2571CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5162cb; /* rgb */ color: rgb(81, 98, 203); /* oklch */ color: oklch(53.9% 0.163 272.8);
Tailwind
colors: {
custom: {
50: '#8d8edb',
500: '#5162cb',
950: '#000000',
},
}SCSS
$custom: #5162cb; $custom-light: #8d8edb; $custom-dark: #000000;
JSON
{
"hex": "#5162cb",
"rgb": {
"r": 81,
"g": 98,
"b": 203
},
"hsl": {
"h": 231.639,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.53864,
"c": 0.16258,
"h": 272.8
},
"luminance": 0.14796
}Semantic roles & 50–950 ramp
primary
#5162CB
secondary
#D5CEA3
accent
#C94ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83