#5161DA#5161DA

#5161DA is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.8% C 0.184 H 273.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5161DA
RGBrgb(81, 97, 218)
HSLhsl(233, 65%, 59%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(62.8%, 55.5%, 0%, 14.5%)
CIE-LABlab(46.12, 31.20, -64.02)
CIE-LCHlch(46.12, 71.22, 295.98°)
OKLaboklab(54.77% 0.0098 -0.184)
OKLCHoklch(54.77% 0.184 273)
XYZxyz(20.3187, 15.3590, 68.2099)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161DA #DACA51
analogous
#51A5DA #5161DA #8551DA
triadic
#5161DA #DA5161 #61DA51
tetradic
#5161DA #DA51A5 #DACA51 #51DA85
square
#5161DA #DA51A5 #DACA51 #51DA85
split-complementary
#5161DA #DA8551 #A5DA51
monochromatic
#1F2C92 #2A3CC4 #5161DA #838FE5 #B6BDEF

Accessibility & contrast

On white

5.16
#5161DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5161DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161DA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161DA#FFFFFF#000000##FFFFFF
##5161DA1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DE
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#007E94
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5161da;
/* rgb */ color: rgb(81, 97, 218);
/* oklch */ color: oklch(54.8% 0.184 273.0);
Tailwind
colors: {
  custom: {
    50: '#8f8de6',
    500: '#5161da',
    950: '#000000',
  },
}
SCSS
$custom: #5161da;
$custom-light: #8f8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5161da",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 218
  },
  "hsl": {
    "h": 232.993,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.54767,
    "c": 0.18423,
    "h": 273
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#5161DA
secondary
#DED8A8
accent
#D440E8
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161DA

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

Preview Lab → · Contrast checker → · Palette generator →

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