#5162CD#5162CD
#5162CD is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.0% C 0.165 H 272.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #5162CD |
|---|---|
| RGB | rgb(81, 98, 205) |
| HSL | hsl(232, 55%, 56%) |
| HSV | hsv(232, 60%, 80%) |
| CMYK | cmyk(60.5%, 52.2%, 0%, 19.6%) |
| CIE-LAB | lab(45.48, 26.18, -57.62) |
| CIE-LCH | lch(45.48, 63.29, 294.44°) |
| OKLab | oklab(54.01% 0.0082 -0.1651) |
| OKLCH | oklch(54.01% 0.165 272.8) |
| XYZ | xyz(18.7768, 14.8910, 59.6305) |
| Luminance | 0.1489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.94
Dark Periwinkle
#665FD1
ΔE00 4.14
Royal Blue
#4169E1
ΔE00 4.15
Azul
#1D5DEC
ΔE00 5.10
Iris
#6258C4
ΔE00 5.14
Cornflower Blue
#5170D7
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162CD #CDBC51
analogous
#51A0CD #5162CD #7E51CD
triadic
#5162CD #CD5162 #62CD51
tetradic
#5162CD #CD51A0 #CDBC51 #51CD7E
square
#5162CD #CD51A0 #CDBC51 #51CD7E
split-complementary
#5162CD #CD7E51 #A0CD51
monochromatic
#25317F #3243AF #5162CD #818DDB #B0B8E8
Accessibility & contrast
On white
5.28
#5162CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#5162CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162CD
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162CD | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2271D1
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#007B8E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5162cd; /* rgb */ color: rgb(81, 98, 205); /* oklch */ color: oklch(54.0% 0.165 272.8);
Tailwind
colors: {
custom: {
50: '#8d8edd',
500: '#5162cd',
950: '#000000',
},
}SCSS
$custom: #5162cd; $custom-light: #8d8edd; $custom-dark: #000000;
JSON
{
"hex": "#5162cd",
"rgb": {
"r": 81,
"g": 98,
"b": 205
},
"hsl": {
"h": 231.774,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.54006,
"c": 0.16533,
"h": 272.8
},
"luminance": 0.14892
}Semantic roles & 50–950 ramp
primary
#5162CD
secondary
#D7CFA3
accent
#CA49DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83