#5159CB#5159CB

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

Color values

HEX#5159CB
RGBrgb(81, 89, 203)
HSLhsl(236, 54%, 56%)
HSVhsv(236, 60%, 80%)
CMYKcmyk(60.1%, 56.2%, 0%, 20.4%)
CIE-LABlab(43.07, 31.14, -60.38)
CIE-LCHlch(43.07, 67.93, 297.28°)
OKLaboklab(52.15% 0.0168 -0.1733)
OKLCHoklch(52.15% 0.174 275.5)
XYZxyz(17.7417, 13.2045, 58.1021)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159CB #CBC351
analogous
#5196CB #5159CB #8651CB
triadic
#5159CB #CB5159 #59CB51
tetradic
#5159CB #CB5196 #CBC351 #51CB86
square
#5159CB #CB5196 #CBC351 #51CB86
split-complementary
#5159CB #CB8651 #96CB51
monochromatic
#252B7C #333BAC #5159CB #8086D9 #AFB3E7

Accessibility & contrast

On white

5.77
#5159CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5159CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159CB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159CB#FFFFFF#000000##FFFFFF
##5159CB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5159cb;
/* rgb */ color: rgb(81, 89, 203);
/* oklch */ color: oklch(52.2% 0.174 275.5);
Tailwind
colors: {
  custom: {
    50: '#8d87dc',
    500: '#5159cb',
    950: '#000000',
  },
}
SCSS
$custom: #5159cb;
$custom-light: #8d87dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5159cb",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 236.066,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52153,
    "c": 0.17414,
    "h": 275.5
  },
  "luminance": 0.13206
}

Semantic roles & 50–950 ramp

primary
#5159CB
secondary
#D5D2A3
accent
#D44ADD
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159CB

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

Preview Lab → · Contrast checker → · Palette generator →

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