#5160CB#5160CB
#5160CB is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.5% C 0.165 H 273.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #5160CB |
|---|---|
| RGB | rgb(81, 96, 203) |
| HSL | hsl(233, 54%, 56%) |
| HSV | hsv(233, 60%, 80%) |
| CMYK | cmyk(60.1%, 52.7%, 0%, 20.4%) |
| CIE-LAB | lab(44.84, 26.76, -57.52) |
| CIE-LCH | lch(44.84, 63.44, 294.95°) |
| OKLab | oklab(53.48% 0.01 -0.1648) |
| OKLCH | oklch(53.48% 0.165 273.5) |
| XYZ | xyz(18.3522, 14.4254, 58.3056) |
| Luminance | 0.1443 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.52
Dark Periwinkle
#665FD1
ΔE00 3.95
Iris
#6258C4
ΔE00 4.57
Royal Blue
#4169E1
ΔE00 4.80
Azul
#1D5DEC
ΔE00 5.25
Slate Blue
#6A5ACD
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5160CB #CBBC51
analogous
#519DCB #5160CB #7F51CB
triadic
#5160CB #CB5160 #60CB51
tetradic
#5160CB #CB519D #CBBC51 #51CB7F
square
#5160CB #CB519D #CBBC51 #51CB7F
split-complementary
#5160CB #CB7F51 #9DCB51
monochromatic
#25307C #3342AC #5160CB #808BD9 #AFB6E7
Accessibility & contrast
On white
5.40
#5160CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#5160CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5160CB
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5160CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5160CB | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E70CF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5160cb; /* rgb */ color: rgb(81, 96, 203); /* oklch */ color: oklch(53.5% 0.165 273.5);
Tailwind
colors: {
custom: {
50: '#8d8ddb',
500: '#5160cb',
950: '#000000',
},
}SCSS
$custom: #5160cb; $custom-light: #8d8ddb; $custom-dark: #000000;
JSON
{
"hex": "#5160cb",
"rgb": {
"r": 81,
"g": 96,
"b": 203
},
"hsl": {
"h": 232.623,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.53476,
"c": 0.16515,
"h": 273.5
},
"luminance": 0.14427
}Semantic roles & 50–950 ramp
primary
#5160CB
secondary
#D5CFA3
accent
#CB4ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83