#5161CC#5161CC
#5161CC is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.165 H 273.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #5161CC |
|---|---|
| RGB | rgb(81, 97, 204) |
| HSL | hsl(232, 55%, 56%) |
| HSV | hsv(232, 60%, 80%) |
| CMYK | cmyk(60.3%, 52.5%, 0%, 20%) |
| CIE-LAB | lab(45.16, 26.47, -57.57) |
| CIE-LCH | lch(45.16, 63.37, 294.69°) |
| OKLab | oklab(53.74% 0.0091 -0.165) |
| OKLCH | oklch(53.74% 0.165 273.2) |
| XYZ | xyz(18.5635, 14.6569, 58.9658) |
| Luminance | 0.1466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.72
Dark Periwinkle
#665FD1
ΔE00 4.03
Royal Blue
#4169E1
ΔE00 4.47
Iris
#6258C4
ΔE00 4.85
Azul
#1D5DEC
ΔE00 5.17
Slate Blue
#6A5ACD
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161CC #CCBC51
analogous
#519ECC #5161CC #7E51CC
triadic
#5161CC #CC5161 #61CC51
tetradic
#5161CC #CC519E #CCBC51 #51CC7E
square
#5161CC #CC519E #CCBC51 #51CC7E
split-complementary
#5161CC #CC7E51 #9ECC51
monochromatic
#25307E #3343AD #5161CC #808CDA #B0B7E8
Accessibility & contrast
On white
5.34
#5161CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#5161CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161CC
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161CC | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2070D0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5161cc; /* rgb */ color: rgb(81, 97, 204); /* oklch */ color: oklch(53.7% 0.165 273.2);
Tailwind
colors: {
custom: {
50: '#8d8ddc',
500: '#5161cc',
950: '#000000',
},
}SCSS
$custom: #5161cc; $custom-light: #8d8ddc; $custom-dark: #000000;
JSON
{
"hex": "#5161cc",
"rgb": {
"r": 81,
"g": 97,
"b": 204
},
"hsl": {
"h": 232.195,
"s": 54.667,
"l": 55.882
},
"oklch": {
"l": 0.53741,
"c": 0.16524,
"h": 273.2
},
"luminance": 0.14658
}Semantic roles & 50–950 ramp
primary
#5161CC
secondary
#D6CFA3
accent
#CB4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83