#5955BA#5955BA

#5955BA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.154 H 281.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5955BA
RGBrgb(89, 85, 186)
HSLhsl(242, 42%, 53%)
HSVhsv(242, 54%, 73%)
CMYKcmyk(52.2%, 54.3%, 0%, 27.1%)
CIE-LABlab(41.48, 29.64, -53.05)
CIE-LCHlch(41.48, 60.77, 299.19°)
OKLaboklab(50.74% 0.0299 -0.1516)
OKLCHoklch(50.74% 0.155 281.1)
XYZxyz(16.2285, 12.1651, 47.9378)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5955BA #B6BA55
analogous
#5583BA #5955BA #8B55BA
triadic
#5955BA #BA5955 #55BA59
tetradic
#5955BA #BA5583 #B6BA55 #55BA8B
square
#5955BA #BA5583 #B6BA55 #55BA8B
split-complementary
#5955BA #BA8B55 #83BA55
monochromatic
#2D2B6A #403D95 #5955BA #8481CC #AEACDD

Accessibility & contrast

On white

6.12
#5955BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5955BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5955BA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5955BA#FFFFFF#000000##FFFFFF
##5955BA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BD
Deuteranopia (green-blind)
#0A5EB8
Tritanopia (blue-blind)
#316C7F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5955ba;
/* rgb */ color: rgb(89, 85, 186);
/* oklch */ color: oklch(50.7% 0.154 281.1);
Tailwind
colors: {
  custom: {
    50: '#8f85cf',
    500: '#5955ba',
    950: '#000000',
  },
}
SCSS
$custom: #5955ba;
$custom-light: #8f85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5955ba",
  "rgb": {
    "r": 89,
    "g": 85,
    "b": 186
  },
  "hsl": {
    "h": 242.376,
    "s": 42.259,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5074,
    "c": 0.1545,
    "h": 281.1
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#5955BA
secondary
#C9CBA0
accent
#D256CD
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5955BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5955BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva