#5951C8#5951C8

#5951C8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.179 H 281.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5951C8
RGBrgb(89, 81, 200)
HSLhsl(244, 52%, 55%)
HSVhsv(244, 60%, 78%)
CMYKcmyk(55.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(41.50, 36.53, -61.17)
CIE-LCHlch(41.50, 71.24, 300.85°)
OKLaboklab(51.07% 0.0342 -0.1755)
OKLCHoklch(51.07% 0.179 281)
XYZxyz(17.4843, 12.1777, 56.0616)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951C8 #C0C851
analogous
#5184C8 #5951C8 #9551C8
triadic
#5951C8 #C85951 #51C859
tetradic
#5951C8 #C85184 #C0C851 #51C895
square
#5951C8 #C85184 #C0C851 #51C895
split-complementary
#5951C8 #C89551 #84C851
monochromatic
#2C2679 #3C35A7 #5951C8 #8580D7 #B2AEE5

Accessibility & contrast

On white

6.11
#5951C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5951C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951C8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951C8#FFFFFF#000000##FFFFFF
##5951C81.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#226D85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5951c8;
/* rgb */ color: rgb(89, 81, 200);
/* oklch */ color: oklch(51.1% 0.179 281.0);
Tailwind
colors: {
  custom: {
    50: '#9182da',
    500: '#5951c8',
    950: '#000000',
  },
}
SCSS
$custom: #5951c8;
$custom-light: #9182da;
$custom-dark: #000000;
JSON
{
  "hex": "#5951c8",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 244.034,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.17878,
    "h": 281
  },
  "luminance": 0.12179
}

Semantic roles & 50–950 ramp

primary
#5951C8
secondary
#D0D3A1
accent
#DB4CD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5951C8

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

Preview Lab → · Contrast checker → · Palette generator →

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