#5954CD#5954CD

#5954CD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.182 H 279.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5954CD
RGBrgb(89, 84, 205)
HSLhsl(242, 55%, 57%)
HSVhsv(242, 59%, 80%)
CMYKcmyk(56.6%, 59%, 0%, 19.6%)
CIE-LABlab(42.57, 36.30, -62.32)
CIE-LCHlch(42.57, 72.12, 300.22°)
OKLaboklab(51.97% 0.0311 -0.1789)
OKLCHoklch(51.97% 0.182 279.9)
XYZxyz(18.3061, 12.8711, 59.2655)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954CD #C8CD54
analogous
#548CCD #5954CD #9654CD
triadic
#5954CD #CD5954 #54CD59
tetradic
#5954CD #CD548C #C8CD54 #54CD96
square
#5954CD #CD548C #C8CD54 #54CD96
split-complementary
#5954CD #CD9654 #8CCD54
monochromatic
#292681 #3934B0 #5954CD #8783DB #B5B3E9

Accessibility & contrast

On white

5.88
#5954CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5954CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954CD
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954CD#FFFFFF#000000##FFFFFF
##5954CD1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#197188
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5954cd;
/* rgb */ color: rgb(89, 84, 205);
/* oklch */ color: oklch(52.0% 0.182 279.9);
Tailwind
colors: {
  custom: {
    50: '#9284dd',
    500: '#5954cd',
    950: '#000000',
  },
}
SCSS
$custom: #5954cd;
$custom-light: #9284dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5954cd",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 242.479,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.18154,
    "h": 279.9
  },
  "luminance": 0.12872
}

Semantic roles & 50–950 ramp

primary
#5954CD
secondary
#D5D7A6
accent
#DE4AD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5954CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5954CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva