#5951BF#5951BF

#5951BF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.167 H 281.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5951BF
RGBrgb(89, 81, 191)
HSLhsl(244, 46%, 53%)
HSVhsv(244, 58%, 75%)
CMYKcmyk(53.4%, 57.6%, 0%, 25.1%)
CIE-LABlab(40.85, 33.69, -56.99)
CIE-LCHlch(40.85, 66.20, 300.59°)
OKLaboklab(50.38% 0.0343 -0.1632)
OKLCHoklch(50.38% 0.167 281.9)
XYZxyz(16.4633, 11.7693, 50.6843)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951BF #B7BF51
analogous
#5180BF #5951BF #9051BF
triadic
#5951BF #BF5951 #51BF59
tetradic
#5951BF #BF5180 #B7BF51 #51BF90
square
#5951BF #BF5180 #B7BF51 #51BF90
split-complementary
#5951BF #BF9051 #80BF51
monochromatic
#2D286D #40399A #5951BF #847ECF #AEAAE0

Accessibility & contrast

On white

6.26
#5951BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5951BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951BF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951BF#FFFFFF#000000##FFFFFF
##5951BF1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#2D6B80
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5951bf;
/* rgb */ color: rgb(89, 81, 191);
/* oklch */ color: oklch(50.4% 0.167 281.9);
Tailwind
colors: {
  custom: {
    50: '#9082d3',
    500: '#5951bf',
    950: '#000000',
  },
}
SCSS
$custom: #5951bf;
$custom-light: #9082d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5951bf",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 244.364,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.16677,
    "h": 281.9
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#5951BF
secondary
#CACE9E
accent
#D652CC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5951BF

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

Preview Lab → · Contrast checker → · Palette generator →

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