#5161DB#5161DB

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

Color values

HEX#5161DB
RGBrgb(81, 97, 219)
HSLhsl(233, 66%, 59%)
HSVhsv(233, 63%, 86%)
CMYKcmyk(63%, 55.7%, 0%, 14.1%)
CIE-LABlab(46.19, 31.54, -64.48)
CIE-LCHlch(46.19, 71.78, 296.06°)
OKLaboklab(54.84% 0.0098 -0.1853)
OKLCHoklch(54.84% 0.186 273)
XYZxyz(20.4500, 15.4114, 68.9011)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161DB #DBCB51
analogous
#51A6DB #5161DB #8651DB
triadic
#5161DB #DB5161 #61DB51
tetradic
#5161DB #DB51A6 #DBCB51 #51DB86
square
#5161DB #DB51A6 #DBCB51 #51DB86
split-complementary
#5161DB #DB8651 #A6DB51
monochromatic
#1E2C93 #293BC6 #5161DB #848FE5 #B6BDF0

Accessibility & contrast

On white

5.14
#5161DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5161DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161DB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161DB#FFFFFF#000000##FFFFFF
##5161DB1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#007E94
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5161db;
/* rgb */ color: rgb(81, 97, 219);
/* oklch */ color: oklch(54.8% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#8f8de7',
    500: '#5161db',
    950: '#000000',
  },
}
SCSS
$custom: #5161db;
$custom-light: #8f8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#5161db",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 219
  },
  "hsl": {
    "h": 233.043,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54842,
    "c": 0.18557,
    "h": 273
  },
  "luminance": 0.15413
}

Semantic roles & 50–950 ramp

primary
#5161DB
secondary
#DFD9A9
accent
#D53FE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161DB

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

Preview Lab → · Contrast checker → · Palette generator →

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