#5162CE#5162CE
#5162CE is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.1% C 0.167 H 272.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #5162CE |
|---|---|
| RGB | rgb(81, 98, 206) |
| HSL | hsl(232, 56%, 56%) |
| HSV | hsv(232, 61%, 81%) |
| CMYK | cmyk(60.7%, 52.4%, 0%, 19.2%) |
| CIE-LAB | lab(45.55, 26.52, -58.09) |
| CIE-LCH | lch(45.55, 63.86, 294.54°) |
| OKLab | oklab(54.08% 0.0082 -0.1665) |
| OKLCH | oklch(54.08% 0.167 272.8) |
| XYZ | xyz(18.8979, 14.9394, 60.2683) |
| Luminance | 0.1494 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.87
Royal Blue
#4169E1
ΔE00 4.08
Dark Periwinkle
#665FD1
ΔE00 4.09
Azul
#1D5DEC
ΔE00 5.03
Cornflower Blue
#5170D7
ΔE00 5.11
Iris
#6258C4
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162CE #CEBD51
analogous
#51A1CE #5162CE #7F51CE
triadic
#5162CE #CE5162 #62CE51
tetradic
#5162CE #CE51A1 #CEBD51 #51CE7F
square
#5162CE #CE51A1 #CEBD51 #51CE7F
split-complementary
#5162CE #CE7F51 #A1CE51
monochromatic
#243180 #3243B0 #5162CE #818DDB #B1B8E9
Accessibility & contrast
On white
5.27
#5162CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#5162CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162CE
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162CE | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2071D2
Deuteranopia (green-blind)
#0067CC
Tritanopia (blue-blind)
#007B8E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5162ce; /* rgb */ color: rgb(81, 98, 206); /* oklch */ color: oklch(54.1% 0.167 272.8);
Tailwind
colors: {
custom: {
50: '#8d8ede',
500: '#5162ce',
950: '#000000',
},
}SCSS
$custom: #5162ce; $custom-light: #8d8ede; $custom-dark: #000000;
JSON
{
"hex": "#5162ce",
"rgb": {
"r": 81,
"g": 98,
"b": 206
},
"hsl": {
"h": 231.84,
"s": 56.054,
"l": 56.275
},
"oklch": {
"l": 0.54077,
"c": 0.16671,
"h": 272.8
},
"luminance": 0.14941
}Semantic roles & 50–950 ramp
primary
#5162CE
secondary
#D7D0A4
accent
#CB48DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83