#5160CD#5160CD

#5160CD is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.6% C 0.168 H 273.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5160CD
RGBrgb(81, 96, 205)
HSLhsl(233, 55%, 56%)
HSVhsv(233, 60%, 80%)
CMYKcmyk(60.5%, 53.2%, 0%, 19.6%)
CIE-LABlab(44.97, 27.44, -58.45)
CIE-LCHlch(44.97, 64.57, 295.15°)
OKLaboklab(53.62% 0.0101 -0.1676)
OKLCHoklch(53.62% 0.168 273.5)
XYZxyz(18.5920, 14.5214, 59.5689)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160CD #CDBE51
analogous
#519ECD #5160CD #8051CD
triadic
#5160CD #CD5160 #60CD51
tetradic
#5160CD #CD519E #CDBE51 #51CD80
square
#5160CD #CD519E #CDBE51 #51CD80
split-complementary
#5160CD #CD8051 #9ECD51
monochromatic
#252F7F #3241AF #5160CD #818BDB #B0B7E8

Accessibility & contrast

On white

5.38
#5160CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5160CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160CD#FFFFFF#000000##FFFFFF
##5160CD1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A70D1
Deuteranopia (green-blind)
#0065CB
Tritanopia (blue-blind)
#00798D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5160cd;
/* rgb */ color: rgb(81, 96, 205);
/* oklch */ color: oklch(53.6% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#8d8ddd',
    500: '#5160cd',
    950: '#000000',
  },
}
SCSS
$custom: #5160cd;
$custom-light: #8d8ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5160cd",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 205
  },
  "hsl": {
    "h": 232.742,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5362,
    "c": 0.1679,
    "h": 273.5
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#5160CD
secondary
#D7D0A3
accent
#CD49DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5160CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5160CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva