#5161C8#5161C8
#5161C8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.5% C 0.160 H 273.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5161C8 |
|---|---|
| RGB | rgb(81, 97, 200) |
| HSL | hsl(232, 52%, 55%) |
| HSV | hsv(232, 60%, 78%) |
| CMYK | cmyk(59.5%, 51.5%, 0%, 21.6%) |
| CIE-LAB | lab(44.90, 25.13, -55.70) |
| CIE-LCH | lch(44.90, 61.10, 294.28°) |
| OKLab | oklab(53.46% 0.0088 -0.1595) |
| OKLCH | oklch(53.46% 0.16 273.2) |
| XYZ | xyz(18.0899, 14.4674, 56.4716) |
| Luminance | 0.1447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.06
Dark Periwinkle
#665FD1
ΔE00 4.26
Royal Blue
#4169E1
ΔE00 4.77
Iris
#6258C4
ΔE00 4.84
Azul
#1D5DEC
ΔE00 5.51
Slate Blue
#6A5ACD
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161C8 #C8B851
analogous
#519CC8 #5161C8 #7D51C8
triadic
#5161C8 #C85161 #61C851
tetradic
#5161C8 #C8519C #C8B851 #51C87D
square
#5161C8 #C8519C #C8B851 #51C87D
split-complementary
#5161C8 #C87D51 #9CC851
monochromatic
#263179 #3544A7 #5161C8 #808BD7 #AEB5E5
Accessibility & contrast
On white
5.39
#5161C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#5161C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161C8
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161C8 | 1.00 | 5.39 | 3.89 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#0565C6
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5161c8; /* rgb */ color: rgb(81, 97, 200); /* oklch */ color: oklch(53.5% 0.160 273.2);
Tailwind
colors: {
custom: {
50: '#8c8dd9',
500: '#5161c8',
950: '#000000',
},
}SCSS
$custom: #5161c8; $custom-light: #8c8dd9; $custom-dark: #000000;
JSON
{
"hex": "#5161c8",
"rgb": {
"r": 81,
"g": 97,
"b": 200
},
"hsl": {
"h": 231.933,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.53457,
"c": 0.15971,
"h": 273.2
},
"luminance": 0.14469
}Semantic roles & 50–950 ramp
primary
#5161C8
secondary
#D3CDA1
accent
#C84CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83