#5167DF#5167DF

#5167DF is a mid, vivid blue. Relative luminance 0.168; OKLCH L 56.3% C 0.183 H 271.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5167DF
RGBrgb(81, 103, 223)
HSLhsl(231, 69%, 60%)
HSVhsv(231, 64%, 87%)
CMYKcmyk(63.7%, 53.8%, 0%, 12.5%)
CIE-LABlab(47.98, 29.17, -63.86)
CIE-LCHlch(47.98, 70.20, 294.55°)
OKLaboklab(56.27% 0.0046 -0.1834)
OKLCHoklch(56.27% 0.183 271.4)
XYZxyz(21.5584, 16.7756, 71.8997)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5167DF #DFC951
analogous
#51AEDF #5167DF #8251DF
triadic
#5167DF #DF5167 #67DF51
tetradic
#5167DF #DF51AE #DFC951 #51DF82
square
#5167DF #DF51AE #DFC951 #51DF82
split-complementary
#5167DF #DF8251 #AEDF51
monochromatic
#1C3099 #2640CD #5167DF #8594E9 #B8C1F2

Accessibility & contrast

On white

4.82
#5167DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5167DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5167DF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5167DF#FFFFFF#000000##FFFFFF
##5167DF1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D78E3
Deuteranopia (green-blind)
#006CDD
Tritanopia (blue-blind)
#008399
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5167df;
/* rgb */ color: rgb(81, 103, 223);
/* oklch */ color: oklch(56.3% 0.183 271.4);
Tailwind
colors: {
  custom: {
    50: '#9092ea',
    500: '#5167df',
    950: '#000000',
  },
}
SCSS
$custom: #5167df;
$custom-light: #9092ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5167df",
  "rgb": {
    "r": 81,
    "g": 103,
    "b": 223
  },
  "hsl": {
    "h": 230.704,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56266,
    "c": 0.18348,
    "h": 271.4
  },
  "luminance": 0.16778
}

Semantic roles & 50–950 ramp

primary
#5167DF
secondary
#E1D9AA
accent
#D13CEC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5167DF

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

Preview Lab → · Contrast checker → · Palette generator →

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