#5951CD#5951CD

#5951CD is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.185 H 280.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5951CD
RGBrgb(89, 81, 205)
HSLhsl(244, 55%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(56.6%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.87, 38.11, -63.45)
CIE-LCHlch(41.87, 74.02, 300.99°)
OKLaboklab(51.46% 0.034 -0.1822)
OKLCHoklch(51.46% 0.185 280.6)
XYZxyz(18.0782, 12.4153, 59.1895)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951CD #C5CD51
analogous
#5187CD #5951CD #9751CD
triadic
#5951CD #CD5951 #51CD59
tetradic
#5951CD #CD5187 #C5CD51 #51CD97
square
#5951CD #CD5187 #C5CD51 #51CD97
split-complementary
#5951CD #CD9751 #87CD51
monochromatic
#2A257F #3A32AF #5951CD #8681DB #B4B0E8

Accessibility & contrast

On white

6.03
#5951CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5951CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951CD
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951CD#FFFFFF#000000##FFFFFF
##5951CD1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#196F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5951cd;
/* rgb */ color: rgb(89, 81, 205);
/* oklch */ color: oklch(51.5% 0.185 280.6);
Tailwind
colors: {
  custom: {
    50: '#9282dd',
    500: '#5951cd',
    950: '#000000',
  },
}
SCSS
$custom: #5951cd;
$custom-light: #9282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5951cd",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 243.871,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51457,
    "c": 0.18536,
    "h": 280.6
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#5951CD
secondary
#D3D7A3
accent
#DF49D5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5951CD

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

Preview Lab → · Contrast checker → · Palette generator →

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