#5165CD#5165CD

#5165CD is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.6% C 0.161 H 271.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5165CD
RGBrgb(81, 101, 205)
HSLhsl(230, 55%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.5%, 50.7%, 0%, 19.6%)
CIE-LABlab(46.26, 24.31, -56.37)
CIE-LCHlch(46.26, 61.39, 293.32°)
OKLaboklab(54.59% 0.0052 -0.1614)
OKLCHoklch(54.59% 0.161 271.8)
XYZxyz(19.0628, 15.4629, 59.7259)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165CD #CDB951
analogous
#51A3CD #5165CD #7B51CD
triadic
#5165CD #CD5165 #65CD51
tetradic
#5165CD #CD51A3 #CDB951 #51CD7B
square
#5165CD #CD51A3 #CDB951 #51CD7B
split-complementary
#5165CD #CD7B51 #A3CD51
monochromatic
#25337F #3246AF #5165CD #818FDB #B0B9E8

Accessibility & contrast

On white

5.13
#5165CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5165CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165CD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165CD#FFFFFF#000000##FFFFFF
##5165CD1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D1
Deuteranopia (green-blind)
#0A68CB
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5165cd;
/* rgb */ color: rgb(81, 101, 205);
/* oklch */ color: oklch(54.6% 0.161 271.8);
Tailwind
colors: {
  custom: {
    50: '#8d90dd',
    500: '#5165cd',
    950: '#000000',
  },
}
SCSS
$custom: #5165cd;
$custom-light: #8d90dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5165cd",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 205
  },
  "hsl": {
    "h": 230.323,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54592,
    "c": 0.16149,
    "h": 271.8
  },
  "luminance": 0.15464
}

Semantic roles & 50–950 ramp

primary
#5165CD
secondary
#D7CEA3
accent
#C749DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165CD

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

Preview Lab → · Contrast checker → · Palette generator →

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