#5954CC#5954CC

#5954CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.180 H 279.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5954CC
RGBrgb(89, 84, 204)
HSLhsl(243, 54%, 56%)
HSVhsv(243, 59%, 80%)
CMYKcmyk(56.4%, 58.8%, 0%, 20%)
CIE-LABlab(42.50, 35.98, -61.86)
CIE-LCHlch(42.50, 71.56, 300.19°)
OKLaboklab(51.9% 0.0311 -0.1775)
OKLCHoklch(51.9% 0.18 279.9)
XYZxyz(18.1858, 12.8229, 58.6318)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954CC #C7CC54
analogous
#548BCC #5954CC #9554CC
triadic
#5954CC #CC5954 #54CC59
tetradic
#5954CC #CC548B #C7CC54 #54CC95
square
#5954CC #CC548B #C7CC54 #54CC95
split-complementary
#5954CC #CC9554 #8BCC54
monochromatic
#2A2680 #3934AF #5954CC #8783DA #B5B2E8

Accessibility & contrast

On white

5.89
#5954CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5954CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954CC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954CC#FFFFFF#000000##FFFFFF
##5954CC1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#1B7188
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5954cc;
/* rgb */ color: rgb(89, 84, 204);
/* oklch */ color: oklch(51.9% 0.180 279.9);
Tailwind
colors: {
  custom: {
    50: '#9284dc',
    500: '#5954cc',
    950: '#000000',
  },
}
SCSS
$custom: #5954cc;
$custom-light: #9284dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5954cc",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 242.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.18021,
    "h": 279.9
  },
  "luminance": 0.12824
}

Semantic roles & 50–950 ramp

primary
#5954CC
secondary
#D4D7A5
accent
#DD4AD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5954CC

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

Preview Lab → · Contrast checker → · Palette generator →

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