#5165DF#5165DF

#5165DF is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.9% C 0.186 H 272.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5165DF
RGBrgb(81, 101, 223)
HSLhsl(232, 69%, 60%)
HSVhsv(232, 64%, 87%)
CMYKcmyk(63.7%, 54.7%, 0%, 12.5%)
CIE-LABlab(47.47, 30.41, -64.67)
CIE-LCHlch(47.47, 71.47, 295.18°)
OKLaboklab(55.89% 0.0064 -0.1858)
OKLCHoklch(55.89% 0.186 272)
XYZxyz(21.3618, 16.3825, 71.8341)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165DF #DFCB51
analogous
#51ACDF #5165DF #8451DF
triadic
#5165DF #DF5165 #65DF51
tetradic
#5165DF #DF51AC #DFCB51 #51DF84
square
#5165DF #DF51AC #DFCB51 #51DF84
split-complementary
#5165DF #DF8451 #ACDF51
monochromatic
#1C2E99 #263DCD #5165DF #8593E9 #B8C1F2

Accessibility & contrast

On white

4.91
#5165DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5165DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165DF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165DF#FFFFFF#000000##FFFFFF
##5165DF1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#006ADD
Tritanopia (blue-blind)
#008298
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5165df;
/* rgb */ color: rgb(81, 101, 223);
/* oklch */ color: oklch(55.9% 0.186 272.0);
Tailwind
colors: {
  custom: {
    50: '#9090ea',
    500: '#5165df',
    950: '#000000',
  },
}
SCSS
$custom: #5165df;
$custom-light: #9090ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5165df",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 223
  },
  "hsl": {
    "h": 231.549,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55889,
    "c": 0.18595,
    "h": 272
  },
  "luminance": 0.16384
}

Semantic roles & 50–950 ramp

primary
#5165DF
secondary
#E1DAAA
accent
#D33CEC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5165DF

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

Preview Lab → · Contrast checker → · Palette generator →

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