#5161DE#5161DE

#5161DE is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.1% C 0.190 H 273.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5161DE
RGBrgb(81, 97, 222)
HSLhsl(233, 68%, 59%)
HSVhsv(233, 64%, 87%)
CMYKcmyk(63.5%, 56.3%, 0%, 12.9%)
CIE-LABlab(46.41, 32.55, -65.83)
CIE-LCHlch(46.41, 73.44, 296.31°)
OKLaboklab(55.07% 0.0099 -0.1893)
OKLCHoklch(55.07% 0.19 273)
XYZxyz(20.8485, 15.5708, 70.9999)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161DE #DECE51
analogous
#51A8DE #5161DE #8751DE
triadic
#5161DE #DE5161 #61DE51
tetradic
#5161DE #DE51A8 #DECE51 #51DE87
square
#5161DE #DE51A8 #DECE51 #51DE87
split-complementary
#5161DE #DE8751 #A8DE51
monochromatic
#1D2B98 #2739CB #5161DE #8490E8 #B8BEF2

Accessibility & contrast

On white

5.10
#5161DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5161DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161DE
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161DE#FFFFFF#000000##FFFFFF
##5161DE1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E2
Deuteranopia (green-blind)
#0068DB
Tritanopia (blue-blind)
#007F96
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5161de;
/* rgb */ color: rgb(81, 97, 222);
/* oklch */ color: oklch(55.1% 0.190 273.0);
Tailwind
colors: {
  custom: {
    50: '#908de9',
    500: '#5161de',
    950: '#000000',
  },
}
SCSS
$custom: #5161de;
$custom-light: #908de9;
$custom-dark: #000000;
JSON
{
  "hex": "#5161de",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 222
  },
  "hsl": {
    "h": 233.191,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55069,
    "c": 0.18956,
    "h": 273
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#5161DE
secondary
#E1DBAA
accent
#D73DEB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161DE

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

Preview Lab → · Contrast checker → · Palette generator →

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