#5159CF#5159CF

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

Color values

HEX#5159CF
RGBrgb(81, 89, 207)
HSLhsl(236, 57%, 56%)
HSVhsv(236, 61%, 81%)
CMYKcmyk(60.9%, 57%, 0%, 18.8%)
CIE-LABlab(43.36, 32.47, -62.22)
CIE-LCHlch(43.36, 70.18, 297.56°)
OKLaboklab(52.46% 0.0169 -0.1787)
OKLCHoklch(52.46% 0.18 275.4)
XYZxyz(18.2245, 13.3976, 60.6450)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159CF #CFC751
analogous
#5198CF #5159CF #8851CF
triadic
#5159CF #CF5159 #59CF51
tetradic
#5159CF #CF5198 #CFC751 #51CF88
square
#5159CF #CF5198 #CFC751 #51CF88
split-complementary
#5159CF #CF8851 #98CF51
monochromatic
#242A82 #3139B2 #5159CF #8187DC #B1B5E9

Accessibility & contrast

On white

5.71
#5159CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5159CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159CF
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159CF#FFFFFF#000000##FFFFFF
##5159CF1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5159cf;
/* rgb */ color: rgb(81, 89, 207);
/* oklch */ color: oklch(52.5% 0.180 275.4);
Tailwind
colors: {
  custom: {
    50: '#8e88de',
    500: '#5159cf',
    950: '#000000',
  },
}
SCSS
$custom: #5159cf;
$custom-light: #8e88de;
$custom-dark: #000000;
JSON
{
  "hex": "#5159cf",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 207
  },
  "hsl": {
    "h": 236.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.17954,
    "h": 275.4
  },
  "luminance": 0.13399
}

Semantic roles & 50–950 ramp

primary
#5159CF
secondary
#D8D4A4
accent
#D648E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159CF

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

Preview Lab → · Contrast checker → · Palette generator →

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