#5161E4#5161E4

#5161E4 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.5% C 0.197 H 272.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5161E4
RGBrgb(81, 97, 228)
HSLhsl(233, 73%, 61%)
HSVhsv(233, 64%, 89%)
CMYKcmyk(64.5%, 57.5%, 0%, 10.6%)
CIE-LABlab(46.84, 34.57, -68.53)
CIE-LCHlch(46.84, 76.75, 296.77°)
OKLaboklab(55.53% 0.01 -0.1972)
OKLCHoklch(55.53% 0.197 272.9)
XYZxyz(21.6670, 15.8982, 75.3106)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161E4 #E4D451
analogous
#51ABE4 #5161E4 #8A51E4
triadic
#5161E4 #E45161 #61E451
tetradic
#5161E4 #E451AB #E4D451 #51E48A
square
#5161E4 #E451AB #E4D451 #51E48A
split-complementary
#5161E4 #E48A51 #ABE451
monochromatic
#1928A2 #2135D7 #5161E4 #8691EC #BBC1F4

Accessibility & contrast

On white

5.02
#5161E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5161E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161E4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161E4#FFFFFF#000000##FFFFFF
##5161E41.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#008199
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5161e4;
/* rgb */ color: rgb(81, 97, 228);
/* oklch */ color: oklch(55.5% 0.197 272.9);
Tailwind
colors: {
  custom: {
    50: '#918ded',
    500: '#5161e4',
    950: '#000000',
  },
}
SCSS
$custom: #5161e4;
$custom-light: #918ded;
$custom-dark: #000000;
JSON
{
  "hex": "#5161e4",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 228
  },
  "hsl": {
    "h": 233.469,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5553,
    "c": 0.19747,
    "h": 272.9
  },
  "luminance": 0.159
}

Semantic roles & 50–950 ramp

primary
#5161E4
secondary
#E4DEAC
accent
#C010D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161E4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5161E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva