#5168CA#5168CA

#5168CA is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.0% C 0.153 H 270.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5168CA
RGBrgb(81, 104, 202)
HSLhsl(229, 53%, 55%)
HSVhsv(229, 60%, 79%)
CMYKcmyk(59.9%, 48.5%, 0%, 20.8%)
CIE-LABlab(46.86, 21.41, -53.69)
CIE-LCHlch(46.86, 57.80, 291.74°)
OKLaboklab(54.98% 0.0018 -0.1535)
OKLCHoklch(54.98% 0.153 270.7)
XYZxyz(19.0008, 15.9127, 57.9358)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168CA #CAB351
analogous
#51A4CA #5168CA #7651CA
triadic
#5168CA #CA5168 #68CA51
tetradic
#5168CA #CA51A4 #CAB351 #51CA76
square
#5168CA #CA51A4 #CAB351 #51CA76
split-complementary
#5168CA #CA7651 #A4CA51
monochromatic
#25367B #344AAA #5168CA #8091D8 #AFB9E7

Accessibility & contrast

On white

5.02
#5168CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5168CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168CA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168CA#FFFFFF#000000##FFFFFF
##5168CA1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3675CE
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#007E8F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5168ca;
/* rgb */ color: rgb(81, 104, 202);
/* oklch */ color: oklch(55.0% 0.153 270.7);
Tailwind
colors: {
  custom: {
    50: '#8c92db',
    500: '#5168ca',
    950: '#000000',
  },
}
SCSS
$custom: #5168ca;
$custom-light: #8c92db;
$custom-dark: #000000;
JSON
{
  "hex": "#5168ca",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 202
  },
  "hsl": {
    "h": 228.595,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54984,
    "c": 0.15349,
    "h": 270.7
  },
  "luminance": 0.15914
}

Semantic roles & 50–950 ramp

primary
#5168CA
secondary
#D5CBA2
accent
#C14BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168CA

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

Preview Lab → · Contrast checker → · Palette generator →

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