#5168DF#5168DF

#5168DF is a mid, vivid blue. Relative luminance 0.170; OKLCH L 56.5% C 0.182 H 271.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5168DF
RGBrgb(81, 104, 223)
HSLhsl(230, 69%, 60%)
HSVhsv(230, 64%, 87%)
CMYKcmyk(63.7%, 53.4%, 0%, 12.5%)
CIE-LABlab(48.23, 28.55, -63.45)
CIE-LCHlch(48.23, 69.57, 294.22°)
OKLaboklab(56.46% 0.0037 -0.1822)
OKLCHoklch(56.46% 0.182 271.2)
XYZxyz(21.6585, 16.9758, 71.9330)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168DF #DFC851
analogous
#51AFDF #5168DF #8151DF
triadic
#5168DF #DF5168 #68DF51
tetradic
#5168DF #DF51AF #DFC851 #51DF81
square
#5168DF #DF51AF #DFC851 #51DF81
split-complementary
#5168DF #DF8151 #AFDF51
monochromatic
#1C3099 #2641CD #5168DF #8595E9 #B8C2F2

Accessibility & contrast

On white

4.78
#5168DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5168DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168DF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168DF#FFFFFF#000000##FFFFFF
##5168DF1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1479E3
Deuteranopia (green-blind)
#006CDD
Tritanopia (blue-blind)
#008499
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5168df;
/* rgb */ color: rgb(81, 104, 223);
/* oklch */ color: oklch(56.5% 0.182 271.2);
Tailwind
colors: {
  custom: {
    50: '#9092ea',
    500: '#5168df',
    950: '#000000',
  },
}
SCSS
$custom: #5168df;
$custom-light: #9092ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5168df",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 223
  },
  "hsl": {
    "h": 230.282,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56457,
    "c": 0.18224,
    "h": 271.2
  },
  "luminance": 0.16978
}

Semantic roles & 50–950 ramp

primary
#5168DF
secondary
#E1D9AA
accent
#CF3CEC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0D16
muted
#7E7D84

Preview Lab

Preview with #5168DF

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

Preview Lab → · Contrast checker → · Palette generator →

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