#5168DB#5168DB

#5168DB is a mid, vivid blue. Relative luminance 0.168; OKLCH L 56.2% C 0.177 H 271.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5168DB
RGBrgb(81, 104, 219)
HSLhsl(230, 66%, 59%)
HSVhsv(230, 63%, 86%)
CMYKcmyk(63%, 52.5%, 0%, 14.1%)
CIE-LABlab(47.96, 27.18, -61.62)
CIE-LCHlch(47.96, 67.35, 293.81°)
OKLaboklab(56.17% 0.0034 -0.1768)
OKLCHoklch(56.17% 0.177 271.1)
XYZxyz(21.1255, 16.7626, 69.1263)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168DB #DBC451
analogous
#51ADDB #5168DB #7F51DB
triadic
#5168DB #DB5168 #68DB51
tetradic
#5168DB #DB51AD #DBC451 #51DB7F
square
#5168DB #DB51AD #DBC451 #51DB7F
split-complementary
#5168DB #DB7F51 #ADDB51
monochromatic
#1E3293 #2943C6 #5168DB #8494E5 #B6C0F0

Accessibility & contrast

On white

4.82
#5168DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#5168DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168DB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168DB#FFFFFF#000000##FFFFFF
##5168DB1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E78DF
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#008397
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5168db;
/* rgb */ color: rgb(81, 104, 219);
/* oklch */ color: oklch(56.2% 0.177 271.1);
Tailwind
colors: {
  custom: {
    50: '#8f92e7',
    500: '#5168db',
    950: '#000000',
  },
}
SCSS
$custom: #5168db;
$custom-light: #8f92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5168db",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 219
  },
  "hsl": {
    "h": 230,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56168,
    "c": 0.17685,
    "h": 271.1
  },
  "luminance": 0.16764
}

Semantic roles & 50–950 ramp

primary
#5168DB
secondary
#DFD6A9
accent
#CC3FE9
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0D16
muted
#7E7D84

Preview Lab

Preview with #5168DB

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

Preview Lab → · Contrast checker → · Palette generator →

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