#5A54BF#5A54BF

#5A54BF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.0% C 0.163 H 281.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5A54BF
RGBrgb(90, 84, 191)
HSLhsl(243, 46%, 54%)
HSVhsv(243, 56%, 75%)
CMYKcmyk(52.9%, 56%, 0%, 25.1%)
CIE-LABlab(41.65, 32.05, -55.69)
CIE-LCHlch(41.65, 64.25, 299.92°)
OKLaboklab(51% 0.0323 -0.1593)
OKLCHoklch(51% 0.163 281.5)
XYZxyz(16.7879, 12.2749, 50.7648)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54BF #B9BF54
analogous
#5484BF #5A54BF #9054BF
triadic
#5A54BF #BF5A54 #54BF5A
tetradic
#5A54BF #BF5484 #B9BF54 #54BF90
square
#5A54BF #BF5484 #B9BF54 #54BF90
split-complementary
#5A54BF #BF9054 #84BF54
monochromatic
#2D2A6F #403A9C #5A54BF #8581D0 #B0ADE0

Accessibility & contrast

On white

6.08
#5A54BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A54BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54BF
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54BF#FFFFFF#000000##FFFFFF
##5A54BF1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0766C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#2F6C81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a54bf;
/* rgb */ color: rgb(90, 84, 191);
/* oklch */ color: oklch(51.0% 0.163 281.5);
Tailwind
colors: {
  custom: {
    50: '#9084d3',
    500: '#5a54bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a54bf;
$custom-light: #9084d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54bf",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 243.364,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50996,
    "c": 0.16258,
    "h": 281.5
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#5A54BF
secondary
#CCCEA1
accent
#D553CE
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A54BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A54BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva