#5954E4#5954E4

#5954E4 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.8% C 0.211 H 278.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5954E4
RGBrgb(89, 84, 228)
HSLhsl(242, 73%, 61%)
HSVhsv(242, 63%, 89%)
CMYKcmyk(61%, 63.2%, 0%, 10.6%)
CIE-LABlab(44.33, 43.63, -72.60)
CIE-LCHlch(44.33, 84.70, 301.00°)
OKLaboklab(53.81% 0.0299 -0.2091)
OKLCHoklch(53.81% 0.211 278.1)
XYZxyz(21.2892, 14.0643, 74.9766)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954E4 #DFE454
analogous
#5497E4 #5954E4 #A154E4
triadic
#5954E4 #E45954 #54E459
tetradic
#5954E4 #E45497 #DFE454 #54E4A1
square
#5954E4 #E45497 #DFE454 #54E4A1
split-complementary
#5954E4 #E4A154 #97E454
monochromatic
#1F1AA4 #2922D9 #5954E4 #8C89EC #C0BEF5

Accessibility & contrast

On white

5.51
#5954E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5954E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954E4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954E4#FFFFFF#000000##FFFFFF
##5954E41.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE9
Deuteranopia (green-blind)
#0063E1
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5954e4;
/* rgb */ color: rgb(89, 84, 228);
/* oklch */ color: oklch(53.8% 0.211 278.1);
Tailwind
colors: {
  custom: {
    50: '#9685ee',
    500: '#5954e4',
    950: '#000000',
  },
}
SCSS
$custom: #5954e4;
$custom-light: #9685ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5954e4",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 242.083,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5381,
    "c": 0.2112,
    "h": 278.1
  },
  "luminance": 0.14066
}

Semantic roles & 50–950 ramp

primary
#5954E4
secondary
#E3E5AF
accent
#D511CE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5954E4

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

Preview Lab → · Contrast checker → · Palette generator →

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