#5160CB#5160CB

#5160CB is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.5% C 0.165 H 273.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5160CB
RGBrgb(81, 96, 203)
HSLhsl(233, 54%, 56%)
HSVhsv(233, 60%, 80%)
CMYKcmyk(60.1%, 52.7%, 0%, 20.4%)
CIE-LABlab(44.84, 26.76, -57.52)
CIE-LCHlch(44.84, 63.44, 294.95°)
OKLaboklab(53.48% 0.01 -0.1648)
OKLCHoklch(53.48% 0.165 273.5)
XYZxyz(18.3522, 14.4254, 58.3056)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160CB #CBBC51
analogous
#519DCB #5160CB #7F51CB
triadic
#5160CB #CB5160 #60CB51
tetradic
#5160CB #CB519D #CBBC51 #51CB7F
square
#5160CB #CB519D #CBBC51 #51CB7F
split-complementary
#5160CB #CB7F51 #9DCB51
monochromatic
#25307C #3342AC #5160CB #808BD9 #AFB6E7

Accessibility & contrast

On white

5.40
#5160CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5160CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160CB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160CB#FFFFFF#000000##FFFFFF
##5160CB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70CF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5160cb;
/* rgb */ color: rgb(81, 96, 203);
/* oklch */ color: oklch(53.5% 0.165 273.5);
Tailwind
colors: {
  custom: {
    50: '#8d8ddb',
    500: '#5160cb',
    950: '#000000',
  },
}
SCSS
$custom: #5160cb;
$custom-light: #8d8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5160cb",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 203
  },
  "hsl": {
    "h": 232.623,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53476,
    "c": 0.16515,
    "h": 273.5
  },
  "luminance": 0.14427
}

Semantic roles & 50–950 ramp

primary
#5160CB
secondary
#D5CFA3
accent
#CB4ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5160CB

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

Preview Lab → · Contrast checker → · Palette generator →

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