#5159CD#5159CD

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

Color values

HEX#5159CD
RGBrgb(81, 89, 205)
HSLhsl(236, 55%, 56%)
HSVhsv(236, 60%, 80%)
CMYKcmyk(60.5%, 56.6%, 0%, 19.6%)
CIE-LABlab(43.21, 31.81, -61.30)
CIE-LCHlch(43.21, 69.06, 297.42°)
OKLaboklab(52.31% 0.0169 -0.176)
OKLCHoklch(52.31% 0.177 275.5)
XYZxyz(17.9816, 13.3005, 59.3654)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159CD #CDC551
analogous
#5197CD #5159CD #8751CD
triadic
#5159CD #CD5159 #59CD51
tetradic
#5159CD #CD5197 #CDC551 #51CD87
square
#5159CD #CD5197 #CDC551 #51CD87
split-complementary
#5159CD #CD8751 #97CD51
monochromatic
#252A7F #323AAF #5159CD #8186DB #B0B4E8

Accessibility & contrast

On white

5.74
#5159CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5159CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159CD
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159CD#FFFFFF#000000##FFFFFF
##5159CD1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5159cd;
/* rgb */ color: rgb(81, 89, 205);
/* oklch */ color: oklch(52.3% 0.177 275.5);
Tailwind
colors: {
  custom: {
    50: '#8e88dd',
    500: '#5159cd',
    950: '#000000',
  },
}
SCSS
$custom: #5159cd;
$custom-light: #8e88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5159cd",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 205
  },
  "hsl": {
    "h": 236.129,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52305,
    "c": 0.17684,
    "h": 275.5
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#5159CD
secondary
#D7D3A3
accent
#D549DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159CD

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

Preview Lab → · Contrast checker → · Palette generator →

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