#5159CE#5159CE

#5159CE is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.4% C 0.178 H 275.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5159CE
RGBrgb(81, 89, 206)
HSLhsl(236, 56%, 56%)
HSVhsv(236, 61%, 81%)
CMYKcmyk(60.7%, 56.8%, 0%, 19.2%)
CIE-LABlab(43.28, 32.14, -61.76)
CIE-LCHlch(43.28, 69.62, 297.49°)
OKLaboklab(52.38% 0.0169 -0.1774)
OKLCHoklch(52.38% 0.178 275.4)
XYZxyz(18.1027, 13.3489, 60.0032)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159CE #CEC651
analogous
#5198CE #5159CE #8851CE
triadic
#5159CE #CE5159 #59CE51
tetradic
#5159CE #CE5198 #CEC651 #51CE88
square
#5159CE #CE5198 #CEC651 #51CE88
split-complementary
#5159CE #CE8851 #98CE51
monochromatic
#242A80 #323AB0 #5159CE #8187DB #B1B4E9

Accessibility & contrast

On white

5.72
#5159CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5159CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159CE
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159CE#FFFFFF#000000##FFFFFF
##5159CE1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5159ce;
/* rgb */ color: rgb(81, 89, 206);
/* oklch */ color: oklch(52.4% 0.178 275.4);
Tailwind
colors: {
  custom: {
    50: '#8e88de',
    500: '#5159ce',
    950: '#000000',
  },
}
SCSS
$custom: #5159ce;
$custom-light: #8e88de;
$custom-dark: #000000;
JSON
{
  "hex": "#5159ce",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 206
  },
  "hsl": {
    "h": 236.16,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52381,
    "c": 0.17819,
    "h": 275.4
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#5159CE
secondary
#D7D4A4
accent
#D648DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159CE

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

Preview Lab → · Contrast checker → · Palette generator →

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