#5168DA#5168DA

#5168DA is a mid, vivid blue. Relative luminance 0.167; OKLCH L 56.1% C 0.175 H 271.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5168DA
RGBrgb(81, 104, 218)
HSLhsl(230, 65%, 59%)
HSVhsv(230, 63%, 85%)
CMYKcmyk(62.8%, 52.3%, 0%, 14.5%)
CIE-LABlab(47.89, 26.84, -61.16)
CIE-LCHlch(47.89, 66.79, 293.70°)
OKLaboklab(56.1% 0.0034 -0.1755)
OKLCHoklch(56.1% 0.175 271.1)
XYZxyz(20.9943, 16.7101, 68.4351)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168DA #DAC351
analogous
#51ACDA #5168DA #7E51DA
triadic
#5168DA #DA5168 #68DA51
tetradic
#5168DA #DA51AC #DAC351 #51DA7E
square
#5168DA #DA51AC #DAC351 #51DA7E
split-complementary
#5168DA #DA7E51 #ACDA51
monochromatic
#1F3292 #2A44C4 #5168DA #8394E5 #B6C0EF

Accessibility & contrast

On white

4.84
#5168DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5168DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168DA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168DA#FFFFFF#000000##FFFFFF
##5168DA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2078DE
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#008397
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5168da;
/* rgb */ color: rgb(81, 104, 218);
/* oklch */ color: oklch(56.1% 0.175 271.1);
Tailwind
colors: {
  custom: {
    50: '#8f92e6',
    500: '#5168da',
    950: '#000000',
  },
}
SCSS
$custom: #5168da;
$custom-light: #8f92e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5168da",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 218
  },
  "hsl": {
    "h": 229.927,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56096,
    "c": 0.17549,
    "h": 271.1
  },
  "luminance": 0.16712
}

Semantic roles & 50–950 ramp

primary
#5168DA
secondary
#DED5A8
accent
#CC40E8
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0D16
muted
#7E7D84

Preview Lab

Preview with #5168DA

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

Preview Lab → · Contrast checker → · Palette generator →

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