#5162C7#5162C7
#5162C7 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.6% C 0.157 H 272.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5162C7 |
|---|---|
| RGB | rgb(81, 98, 199) |
| HSL | hsl(231, 51%, 55%) |
| HSV | hsv(231, 59%, 78%) |
| CMYK | cmyk(59.3%, 50.8%, 0%, 22%) |
| CIE-LAB | lab(45.09, 24.16, -54.81) |
| CIE-LCH | lch(45.09, 59.90, 293.79°) |
| OKLab | oklab(53.58% 0.0077 -0.1568) |
| OKLCH | oklch(53.58% 0.157 272.8) |
| XYZ | xyz(18.0664, 14.6068, 55.8891) |
| Luminance | 0.1461 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.42
Dark Periwinkle
#665FD1
ΔE00 4.47
Royal Blue
#4169E1
ΔE00 4.63
Iris
#6258C4
ΔE00 5.13
Cornflower Blue
#5170D7
ΔE00 5.40
Azul
#1D5DEC
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162C7 #C7B651
analogous
#519DC7 #5162C7 #7B51C7
triadic
#5162C7 #C75162 #62C751
tetradic
#5162C7 #C7519D #C7B651 #51C77B
square
#5162C7 #C7519D #C7B651 #51C77B
split-complementary
#5162C7 #C77B51 #9DC751
monochromatic
#263277 #3545A6 #5162C7 #7F8CD6 #AEB6E5
Accessibility & contrast
On white
5.35
#5162C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#5162C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162C7
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162C7 | 1.00 | 5.35 | 3.92 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B70CB
Deuteranopia (green-blind)
#1066C5
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5162c7; /* rgb */ color: rgb(81, 98, 199); /* oklch */ color: oklch(53.6% 0.157 272.8);
Tailwind
colors: {
custom: {
50: '#8c8ed9',
500: '#5162c7',
950: '#000000',
},
}SCSS
$custom: #5162c7; $custom-light: #8c8ed9; $custom-dark: #000000;
JSON
{
"hex": "#5162c7",
"rgb": {
"r": 81,
"g": 98,
"b": 199
},
"hsl": {
"h": 231.356,
"s": 51.304,
"l": 54.902
},
"oklch": {
"l": 0.53583,
"c": 0.15703,
"h": 272.8
},
"luminance": 0.14608
}Semantic roles & 50–950 ramp
primary
#5162C7
secondary
#D3CCA1
accent
#C64DDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C15
muted
#7E7D83