#5159C8#5159C8

#5159C8 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.9% C 0.170 H 275.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5159C8
RGBrgb(81, 89, 200)
HSLhsl(236, 52%, 55%)
HSVhsv(236, 60%, 78%)
CMYKcmyk(59.5%, 55.5%, 0%, 21.6%)
CIE-LABlab(42.86, 30.14, -58.99)
CIE-LCHlch(42.86, 66.24, 297.07°)
OKLaboklab(51.93% 0.0167 -0.1692)
OKLCHoklch(51.93% 0.17 275.6)
XYZxyz(17.3877, 13.0629, 56.2375)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159C8 #C8C051
analogous
#5195C8 #5159C8 #8451C8
triadic
#5159C8 #C85159 #59C851
tetradic
#5159C8 #C85195 #C8C051 #51C884
square
#5159C8 #C85195 #C8C051 #51C884
split-complementary
#5159C8 #C88451 #95C851
monochromatic
#262C79 #353CA7 #5159C8 #8085D7 #AEB2E5

Accessibility & contrast

On white

5.81
#5159C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5159C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159C8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159C8#FFFFFF#000000##FFFFFF
##5159C81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5159c8;
/* rgb */ color: rgb(81, 89, 200);
/* oklch */ color: oklch(51.9% 0.170 275.6);
Tailwind
colors: {
  custom: {
    50: '#8d87d9',
    500: '#5159c8',
    950: '#000000',
  },
}
SCSS
$custom: #5159c8;
$custom-light: #8d87d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5159c8",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 200
  },
  "hsl": {
    "h": 235.966,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51928,
    "c": 0.17007,
    "h": 275.6
  },
  "luminance": 0.13064
}

Semantic roles & 50–950 ramp

primary
#5159C8
secondary
#D3D0A1
accent
#D24CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5159C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva