#5D54F1#5D54F1

#5D54F1 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.2% C 0.227 H 278.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5D54F1
RGBrgb(93, 84, 241)
HSLhsl(243, 85%, 64%)
HSVhsv(243, 65%, 95%)
CMYKcmyk(61.4%, 65.1%, 0%, 5.5%)
CIE-LABlab(45.66, 48.31, -77.75)
CIE-LCHlch(45.66, 91.53, 301.85°)
OKLaboklab(55.18% 0.0335 -0.2241)
OKLCHoklch(55.18% 0.227 278.5)
XYZxyz(23.5566, 15.0169, 84.8592)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D54F1 #E8F154
analogous
#5499F1 #5D54F1 #AB54F1
triadic
#5D54F1 #F15D54 #54F15D
tetradic
#5D54F1 #F15499 #E8F154 #54F1AB
square
#5D54F1 #F15499 #E8F154 #54F1AB
split-complementary
#5D54F1 #F1AB54 #99F154
monochromatic
#190FBB #271BEC #5D54F1 #938DF6 #C8C5FA

Accessibility & contrast

On white

5.25
#5D54F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5D54F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D54F1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D54F1#FFFFFF#000000##FFFFFF
##5D54F11.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F6
Deuteranopia (green-blind)
#0066EE
Tritanopia (blue-blind)
#007D9B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5d54f1;
/* rgb */ color: rgb(93, 84, 241);
/* oklch */ color: oklch(55.2% 0.227 278.5);
Tailwind
colors: {
  custom: {
    50: '#9a85f7',
    500: '#5d54f1',
    950: '#000000',
  },
}
SCSS
$custom: #5d54f1;
$custom-light: #9a85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d54f1",
  "rgb": {
    "r": 93,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 243.439,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55176,
    "c": 0.22656,
    "h": 278.5
  },
  "luminance": 0.15019
}

Semantic roles & 50–950 ramp

primary
#5D54F1
secondary
#E9ECB5
accent
#E104D5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D54F1

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

Preview Lab → · Contrast checker → · Palette generator →

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