#5951BB#5951BB

#5951BB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.161 H 282.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5951BB
RGBrgb(89, 81, 187)
HSLhsl(245, 44%, 53%)
HSVhsv(245, 57%, 73%)
CMYKcmyk(52.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(40.57, 32.43, -55.11)
CIE-LCHlch(40.57, 63.94, 300.47°)
OKLaboklab(50.08% 0.0343 -0.1577)
OKLCHoklch(50.08% 0.161 282.3)
XYZxyz(16.0292, 11.5957, 48.3976)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951BB #B3BB51
analogous
#517EBB #5951BB #8E51BB
triadic
#5951BB #BB5951 #51BB59
tetradic
#5951BB #BB517E #B3BB51 #51BB8E
square
#5951BB #BB517E #B3BB51 #51BB8E
split-complementary
#5951BB #BB8E51 #7EBB51
monochromatic
#2E2969 #413A95 #5951BB #837DCC #ADA9DD

Accessibility & contrast

On white

6.33
#5951BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5951BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951BB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951BB#FFFFFF#000000##FFFFFF
##5951BB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#31697E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5951bb;
/* rgb */ color: rgb(89, 81, 187);
/* oklch */ color: oklch(50.1% 0.161 282.3);
Tailwind
colors: {
  custom: {
    50: '#9082d0',
    500: '#5951bb',
    950: '#000000',
  },
}
SCSS
$custom: #5951bb;
$custom-light: #9082d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5951bb",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 244.528,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50084,
    "c": 0.16136,
    "h": 282.3
  },
  "luminance": 0.11597
}

Semantic roles & 50–950 ramp

primary
#5951BB
secondary
#C7CB9D
accent
#D454CA
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5951BB

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

Preview Lab → · Contrast checker → · Palette generator →

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