#5168BC#5168BC

#5168BC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.1% C 0.134 H 269.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5168BC
RGBrgb(81, 104, 188)
HSLhsl(227, 44%, 53%)
HSVhsv(227, 57%, 74%)
CMYKcmyk(56.9%, 44.7%, 0%, 26.3%)
CIE-LABlab(46.01, 16.70, -46.96)
CIE-LCHlch(46.01, 49.84, 289.57°)
OKLaboklab(54.07% -0.0001 -0.1337)
OKLCHoklch(54.07% 0.134 269.9)
XYZxyz(17.4177, 15.2795, 49.5986)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168BC #BCA551
analogous
#519DBC #5168BC #7051BC
triadic
#5168BC #BC5168 #68BC51
tetradic
#5168BC #BC519D #BCA551 #51BC70
square
#5168BC #BC519D #BCA551 #51BC70
split-complementary
#5168BC #BC7051 #9DBC51
monochromatic
#29376A #3A4E96 #5168BC #7D8ECD #A9B5DE

Accessibility & contrast

On white

5.18
#5168BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5168BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168BC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168BC#FFFFFF#000000##FFFFFF
##5168BC1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4272BF
Deuteranopia (green-blind)
#3469BA
Tritanopia (blue-blind)
#097B89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5168bc;
/* rgb */ color: rgb(81, 104, 188);
/* oklch */ color: oklch(54.1% 0.134 269.9);
Tailwind
colors: {
  custom: {
    50: '#8a92d1',
    500: '#5168bc',
    950: '#000000',
  },
}
SCSS
$custom: #5168bc;
$custom-light: #8a92d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5168bc",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 188
  },
  "hsl": {
    "h": 227.103,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54068,
    "c": 0.13373,
    "h": 269.9
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#5168BC
secondary
#CCC29D
accent
#B954D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0D14
muted
#7D7D82

Preview Lab

Preview with #5168BC

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

Preview Lab → · Contrast checker → · Palette generator →

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