#5951CB#5951CB

#5951CB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.183 H 280.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5951CB
RGBrgb(89, 81, 203)
HSLhsl(244, 54%, 56%)
HSVhsv(244, 60%, 80%)
CMYKcmyk(56.2%, 60.1%, 0%, 20.4%)
CIE-LABlab(41.72, 37.48, -62.54)
CIE-LCHlch(41.72, 72.91, 300.93°)
OKLaboklab(51.3% 0.034 -0.1795)
OKLCHoklch(51.3% 0.183 280.7)
XYZxyz(17.8384, 12.3193, 57.9262)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951CB #C3CB51
analogous
#5186CB #5951CB #9651CB
triadic
#5951CB #CB5951 #51CB59
tetradic
#5951CB #CB5186 #C3CB51 #51CB96
square
#5951CB #CB5186 #C3CB51 #51CB96
split-complementary
#5951CB #CB9651 #86CB51
monochromatic
#2B257C #3B33AC #5951CB #8680D9 #B3AFE7

Accessibility & contrast

On white

6.06
#5951CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5951CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951CB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951CB#FFFFFF#000000##FFFFFF
##5951CB1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#1D6E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5951cb;
/* rgb */ color: rgb(89, 81, 203);
/* oklch */ color: oklch(51.3% 0.183 280.7);
Tailwind
colors: {
  custom: {
    50: '#9282dc',
    500: '#5951cb',
    950: '#000000',
  },
}
SCSS
$custom: #5951cb;
$custom-light: #9282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5951cb",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 243.934,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.513,
    "c": 0.18274,
    "h": 280.7
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#5951CB
secondary
#D2D5A3
accent
#DD4AD4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5951CB

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

Preview Lab → · Contrast checker → · Palette generator →

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