#5161CB#5161CB
#5161CB is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.7% C 0.164 H 273.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5161CB |
|---|---|
| RGB | rgb(81, 97, 203) |
| HSL | hsl(232, 54%, 56%) |
| HSV | hsv(232, 60%, 80%) |
| CMYK | cmyk(60.1%, 52.2%, 0%, 20.4%) |
| CIE-LAB | lab(45.09, 26.14, -57.10) |
| CIE-LCH | lch(45.09, 62.80, 294.59°) |
| OKLab | oklab(53.67% 0.009 -0.1636) |
| OKLCH | oklch(53.67% 0.164 273.2) |
| XYZ | xyz(18.4440, 14.6091, 58.3362) |
| Luminance | 0.1461 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.80
Dark Periwinkle
#665FD1
ΔE00 4.08
Royal Blue
#4169E1
ΔE00 4.54
Iris
#6258C4
ΔE00 4.84
Azul
#1D5DEC
ΔE00 5.25
Slate Blue
#6A5ACD
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5161CB #CBBB51
analogous
#519ECB #5161CB #7E51CB
triadic
#5161CB #CB5161 #61CB51
tetradic
#5161CB #CB519E #CBBB51 #51CB7E
square
#5161CB #CB519E #CBBB51 #51CB7E
split-complementary
#5161CB #CB7E51 #9ECB51
monochromatic
#25317C #3343AC #5161CB #808CD9 #AFB7E7
Accessibility & contrast
On white
5.35
#5161CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#5161CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5161CB
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5161CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5161CB | 1.00 | 5.35 | 3.92 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2270CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5161cb; /* rgb */ color: rgb(81, 97, 203); /* oklch */ color: oklch(53.7% 0.164 273.2);
Tailwind
colors: {
custom: {
50: '#8d8ddb',
500: '#5161cb',
950: '#000000',
},
}SCSS
$custom: #5161cb; $custom-light: #8d8ddb; $custom-dark: #000000;
JSON
{
"hex": "#5161cb",
"rgb": {
"r": 81,
"g": 97,
"b": 203
},
"hsl": {
"h": 232.131,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.5367,
"c": 0.16387,
"h": 273.2
},
"luminance": 0.14611
}Semantic roles & 50–950 ramp
primary
#5161CB
secondary
#D5CFA3
accent
#CA4ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83