#5954DB#5954DB

#5954DB is a mid, vivid blue. Relative luminance 0.136; OKLCH L 53.1% C 0.200 H 278.8°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5954DB
RGBrgb(89, 84, 219)
HSLhsl(242, 65%, 59%)
HSVhsv(242, 62%, 86%)
CMYKcmyk(59.4%, 61.6%, 0%, 14.1%)
CIE-LABlab(43.62, 40.77, -68.63)
CIE-LCHlch(43.62, 79.83, 300.71°)
OKLaboklab(53.08% 0.0305 -0.1974)
OKLCHoklch(53.08% 0.2 278.8)
XYZxyz(20.0723, 13.5775, 68.5671)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954DB #D6DB54
analogous
#5493DB #5954DB #9D54DB
triadic
#5954DB #DB5954 #54DB59
tetradic
#5954DB #DB5493 #D6DB54 #54DB9D
square
#5954DB #DB5493 #D6DB54 #54DB9D
split-complementary
#5954DB #DB9D54 #93DB54
monochromatic
#241F95 #302AC8 #5954DB #8A87E6 #BBB9F0

Accessibility & contrast

On white

5.65
#5954DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5954DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954DB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954DB#FFFFFF#000000##FFFFFF
##5954DB1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0062D8
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5954db;
/* rgb */ color: rgb(89, 84, 219);
/* oklch */ color: oklch(53.1% 0.200 278.8);
Tailwind
colors: {
  custom: {
    50: '#9484e7',
    500: '#5954db',
    950: '#000000',
  },
}
SCSS
$custom: #5954db;
$custom-light: #9484e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5954db",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 242.222,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53076,
    "c": 0.19977,
    "h": 278.8
  },
  "luminance": 0.13579
}

Semantic roles & 50–950 ramp

primary
#5954DB
secondary
#DEE0AB
accent
#E840E2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5954DB

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

Preview Lab → · Contrast checker → · Palette generator →

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