#5161CF#5161CF
#5161CF is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.0% C 0.169 H 273.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #5161CF |
|---|---|
| RGB | rgb(81, 97, 207) |
| HSL | hsl(232, 57%, 56%) |
| HSV | hsv(232, 61%, 81%) |
| CMYK | cmyk(60.9%, 53.1%, 0%, 18.8%) |
| CIE-LAB | lab(45.36, 27.49, -58.97) |
| CIE-LCH | lch(45.36, 65.06, 294.99°) |
| OKLab | oklab(53.96% 0.0093 -0.1691) |
| OKLCH | oklch(53.96% 0.169 273.1) |
| XYZ | xyz(18.9268, 14.8022, 60.8791) |
| Luminance | 0.1480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.51
Dark Periwinkle
#665FD1
ΔE00 3.90
Royal Blue
#4169E1
ΔE00 4.27
Iris
#6258C4
ΔE00 4.90
Azul
#1D5DEC
ΔE00 4.94
Slate Blue
#6A5ACD
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161CF #CFBF51
analogous
#51A0CF #5161CF #8051CF
triadic
#5161CF #CF5161 #61CF51
tetradic
#5161CF #CF51A0 #CFBF51 #51CF80
square
#5161CF #CF51A0 #CFBF51 #51CF80
split-complementary
#5161CF #CF8051 #A0CF51
monochromatic
#243082 #3141B2 #5161CF #818DDC #B1B8E9
Accessibility & contrast
On white
5.30
#5161CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#5161CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161CF
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161CF | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A71D3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5161cf; /* rgb */ color: rgb(81, 97, 207); /* oklch */ color: oklch(54.0% 0.169 273.1);
Tailwind
colors: {
custom: {
50: '#8d8dde',
500: '#5161cf',
950: '#000000',
},
}SCSS
$custom: #5161cf; $custom-light: #8d8dde; $custom-dark: #000000;
JSON
{
"hex": "#5161cf",
"rgb": {
"r": 81,
"g": 97,
"b": 207
},
"hsl": {
"h": 232.381,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.53957,
"c": 0.16935,
"h": 273.1
},
"luminance": 0.14804
}Semantic roles & 50–950 ramp
primary
#5161CF
secondary
#D8D1A4
accent
#CD48E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83