#5162DC#5162DC
#5162DC is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.1% C 0.186 H 272.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #5162DC |
|---|---|
| RGB | rgb(81, 98, 220) |
| HSL | hsl(233, 67%, 59%) |
| HSV | hsv(233, 63%, 86%) |
| CMYK | cmyk(63.2%, 55.5%, 0%, 13.7%) |
| CIE-LAB | lab(46.51, 31.25, -64.53) |
| CIE-LCH | lch(46.51, 71.70, 295.84°) |
| OKLab | oklab(55.1% 0.009 -0.1854) |
| OKLCH | oklch(55.1% 0.186 272.8) |
| XYZ | xyz(20.6750, 15.6502, 69.6275) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.48
Royal Blue
#4169E1
ΔE00 3.55
Dark Periwinkle
#665FD1
ΔE00 3.97
Azul
#1D5DEC
ΔE00 4.33
Cornflower Blue
#5170D7
ΔE00 5.00
Bright Blue
#0165FC
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162DC #DCCB51
analogous
#51A8DC #5162DC #8651DC
triadic
#5162DC #DC5162 #62DC51
tetradic
#5162DC #DC51A8 #DCCB51 #51DC86
square
#5162DC #DC51A8 #DCCB51 #51DC86
split-complementary
#5162DC #DC8651 #A8DC51
monochromatic
#1E2C95 #283CC8 #5162DC #8490E6 #B7BEF0
Accessibility & contrast
On white
5.08
#5162DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#5162DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162DC
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162DC | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#0068DA
Tritanopia (blue-blind)
#007F95
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5162dc; /* rgb */ color: rgb(81, 98, 220); /* oklch */ color: oklch(55.1% 0.186 272.8);
Tailwind
colors: {
custom: {
50: '#908ee8',
500: '#5162dc',
950: '#000000',
},
}SCSS
$custom: #5162dc; $custom-light: #908ee8; $custom-dark: #000000;
JSON
{
"hex": "#5162dc",
"rgb": {
"r": 81,
"g": 98,
"b": 220
},
"hsl": {
"h": 232.662,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.55104,
"c": 0.18567,
"h": 272.8
},
"luminance": 0.15652
}Semantic roles & 50–950 ramp
primary
#5162DC
secondary
#E0D9A9
accent
#D53EE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84