#5159CC#5159CC

#5159CC is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.2% C 0.175 H 275.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5159CC
RGBrgb(81, 89, 204)
HSLhsl(236, 55%, 56%)
HSVhsv(236, 60%, 80%)
CMYKcmyk(60.3%, 56.4%, 0%, 20%)
CIE-LABlab(43.14, 31.47, -60.84)
CIE-LCHlch(43.14, 68.50, 297.35°)
OKLaboklab(52.23% 0.0168 -0.1747)
OKLCHoklch(52.23% 0.176 275.5)
XYZxyz(17.8613, 13.2523, 58.7318)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159CC #CCC451
analogous
#5196CC #5159CC #8651CC
triadic
#5159CC #CC5159 #59CC51
tetradic
#5159CC #CC5196 #CCC451 #51CC86
square
#5159CC #CC5196 #CCC451 #51CC86
split-complementary
#5159CC #CC8651 #96CC51
monochromatic
#252B7E #333BAD #5159CC #8086DA #B0B3E8

Accessibility & contrast

On white

5.75
#5159CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5159CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159CC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159CC#FFFFFF#000000##FFFFFF
##5159CC1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5159cc;
/* rgb */ color: rgb(81, 89, 204);
/* oklch */ color: oklch(52.2% 0.175 275.5);
Tailwind
colors: {
  custom: {
    50: '#8d88dc',
    500: '#5159cc',
    950: '#000000',
  },
}
SCSS
$custom: #5159cc;
$custom-light: #8d88dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5159cc",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 236.098,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52229,
    "c": 0.1755,
    "h": 275.5
  },
  "luminance": 0.13254
}

Semantic roles & 50–950 ramp

primary
#5159CC
secondary
#D6D3A3
accent
#D44ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159CC

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

Preview Lab → · Contrast checker → · Palette generator →

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