#5162CA#5162CA
#5162CA is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.8% C 0.161 H 272.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #5162CA |
|---|---|
| RGB | rgb(81, 98, 202) |
| HSL | hsl(232, 53%, 55%) |
| HSV | hsv(232, 60%, 79%) |
| CMYK | cmyk(59.9%, 51.5%, 0%, 20.8%) |
| CIE-LAB | lab(45.29, 25.17, -56.22) |
| CIE-LCH | lch(45.29, 61.60, 294.12°) |
| OKLab | oklab(53.79% 0.0079 -0.161) |
| OKLCH | oklch(53.79% 0.161 272.8) |
| XYZ | xyz(18.4182, 14.7475, 57.7416) |
| Luminance | 0.1475 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.16
Dark Periwinkle
#665FD1
ΔE00 4.29
Royal Blue
#4169E1
ΔE00 4.37
Iris
#6258C4
ΔE00 5.12
Cornflower Blue
#5170D7
ΔE00 5.26
Azul
#1D5DEC
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5162CA #CAB951
analogous
#519FCA #5162CA #7C51CA
triadic
#5162CA #CA5162 #62CA51
tetradic
#5162CA #CA519F #CAB951 #51CA7C
square
#5162CA #CA519F #CAB951 #51CA7C
split-complementary
#5162CA #CA7C51 #9FCA51
monochromatic
#25327B #3444AA #5162CA #808CD8 #AFB7E7
Accessibility & contrast
On white
5.32
#5162CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#5162CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5162CA
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5162CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5162CA | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2771CE
Deuteranopia (green-blind)
#0266C8
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5162ca; /* rgb */ color: rgb(81, 98, 202); /* oklch */ color: oklch(53.8% 0.161 272.8);
Tailwind
colors: {
custom: {
50: '#8d8edb',
500: '#5162ca',
950: '#000000',
},
}SCSS
$custom: #5162ca; $custom-light: #8d8edb; $custom-dark: #000000;
JSON
{
"hex": "#5162ca",
"rgb": {
"r": 81,
"g": 98,
"b": 202
},
"hsl": {
"h": 231.57,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.53793,
"c": 0.1612,
"h": 272.8
},
"luminance": 0.14749
}Semantic roles & 50–950 ramp
primary
#5162CA
secondary
#D5CEA2
accent
#C84BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83