#5161BE#5161BE
#5161BE is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.8% C 0.146 H 273.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5161BE |
|---|---|
| RGB | rgb(81, 97, 190) |
| HSL | hsl(231, 46%, 53%) |
| HSV | hsv(231, 57%, 75%) |
| CMYK | cmyk(57.4%, 48.9%, 0%, 25.5%) |
| CIE-LAB | lab(44.25, 21.77, -50.94) |
| CIE-LCH | lch(44.25, 55.40, 293.14°) |
| OKLab | oklab(52.77% 0.0078 -0.1455) |
| OKLCH | oklch(52.77% 0.146 273.1) |
| XYZ | xyz(16.9593, 14.0152, 50.5167) |
| Luminance | 0.1402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.07
Iris
#6258C4
ΔE00 5.11
Warm Blue
#4B57DB
ΔE00 5.12
Royal Blue
#4169E1
ΔE00 5.71
French Blue
#436BAD
ΔE00 6.03
Slate Blue
#6A5ACD
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161BE #BEAE51
analogous
#5197BE #5161BE #7751BE
triadic
#5161BE #BE5161 #61BE51
tetradic
#5161BE #BE5197 #BEAE51 #51BE77
square
#5161BE #BE5197 #BEAE51 #51BE77
split-complementary
#5161BE #BE7751 #97BE51
monochromatic
#28326C #394799 #5161BE #7E89CF #AAB2DF
Accessibility & contrast
On white
5.52
#5161BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.80
#5161BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161BE
5.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161BE | 1.00 | 5.52 | 3.80 | 5.52 |
| #FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#336EC1
Deuteranopia (green-blind)
#2264BC
Tritanopia (blue-blind)
#077686
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5161be; /* rgb */ color: rgb(81, 97, 190); /* oklch */ color: oklch(52.8% 0.146 273.1);
Tailwind
colors: {
custom: {
50: '#8b8dd2',
500: '#5161be',
950: '#000000',
},
}SCSS
$custom: #5161be; $custom-light: #8b8dd2; $custom-dark: #000000;
JSON
{
"hex": "#5161be",
"rgb": {
"r": 81,
"g": 97,
"b": 190
},
"hsl": {
"h": 231.193,
"s": 45.607,
"l": 53.137
},
"oklch": {
"l": 0.52767,
"c": 0.1457,
"h": 273.1
},
"luminance": 0.14016
}Semantic roles & 50–950 ramp
primary
#5161BE
secondary
#CDC69E
accent
#C253D5
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0D0C14
muted
#7D7D83