#5954DF#5954DF

#5954DF is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.4% C 0.205 H 278.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5954DF
RGBrgb(89, 84, 223)
HSLhsl(242, 68%, 60%)
HSVhsv(242, 62%, 87%)
CMYKcmyk(60.1%, 62.3%, 0%, 12.5%)
CIE-LABlab(43.93, 42.04, -70.41)
CIE-LCHlch(43.93, 82.00, 300.84°)
OKLaboklab(53.4% 0.0302 -0.2026)
OKLCHoklch(53.4% 0.205 278.5)
XYZxyz(20.6052, 13.7907, 71.3738)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954DF #DADF54
analogous
#5495DF #5954DF #9E54DF
triadic
#5954DF #DF5954 #54DF59
tetradic
#5954DF #DF5495 #DADF54 #54DF9E
square
#5954DF #DF5495 #DADF54 #54DF9E
split-complementary
#5954DF #DF9E54 #95DF54
monochromatic
#221D9C #2D27CF #5954DF #8B88E9 #BDBBF2

Accessibility & contrast

On white

5.59
#5954DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5954DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954DF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954DF#FFFFFF#000000##FFFFFF
##5954DF1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0062DC
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5954df;
/* rgb */ color: rgb(89, 84, 223);
/* oklch */ color: oklch(53.4% 0.205 278.5);
Tailwind
colors: {
  custom: {
    50: '#9585ea',
    500: '#5954df',
    950: '#000000',
  },
}
SCSS
$custom: #5954df;
$custom-light: #9585ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5954df",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 242.158,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.534,
    "c": 0.20487,
    "h": 278.5
  },
  "luminance": 0.13792
}

Semantic roles & 50–950 ramp

primary
#5954DF
secondary
#E0E2AD
accent
#D015CA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5954DF

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

Preview Lab → · Contrast checker → · Palette generator →

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