#5161DF#5161DF

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

Color values

HEX#5161DF
RGBrgb(81, 97, 223)
HSLhsl(233, 69%, 60%)
HSVhsv(233, 64%, 87%)
CMYKcmyk(63.7%, 56.5%, 0%, 12.5%)
CIE-LABlab(46.48, 32.89, -66.29)
CIE-LCHlch(46.48, 74.00, 296.39°)
OKLaboklab(55.15% 0.0099 -0.1906)
OKLCHoklch(55.15% 0.191 273)
XYZxyz(20.9829, 15.6246, 71.7078)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161DF #DFCF51
analogous
#51A8DF #5161DF #8851DF
triadic
#5161DF #DF5161 #61DF51
tetradic
#5161DF #DF51A8 #DFCF51 #51DF88
square
#5161DF #DF51A8 #DFCF51 #51DF88
split-complementary
#5161DF #DF8851 #A8DF51
monochromatic
#1C2A99 #2639CD #5161DF #8590E9 #B8BFF2

Accessibility & contrast

On white

5.09
#5161DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5161DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161DF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161DF#FFFFFF#000000##FFFFFF
##5161DF1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#0068DC
Tritanopia (blue-blind)
#007F97
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5161df;
/* rgb */ color: rgb(81, 97, 223);
/* oklch */ color: oklch(55.1% 0.191 273.0);
Tailwind
colors: {
  custom: {
    50: '#908dea',
    500: '#5161df',
    950: '#000000',
  },
}
SCSS
$custom: #5161df;
$custom-light: #908dea;
$custom-dark: #000000;
JSON
{
  "hex": "#5161df",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 223
  },
  "hsl": {
    "h": 233.239,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55146,
    "c": 0.19089,
    "h": 273
  },
  "luminance": 0.15626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5161DF

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

Preview Lab → · Contrast checker → · Palette generator →

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