#5D54CB#5D54CB

#5D54CB is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.178 H 281.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5D54CB
RGBrgb(93, 84, 203)
HSLhsl(245, 53%, 56%)
HSVhsv(245, 59%, 80%)
CMYKcmyk(54.2%, 58.6%, 0%, 20.4%)
CIE-LABlab(42.73, 36.41, -60.89)
CIE-LCHlch(42.73, 70.94, 300.88°)
OKLaboklab(52.12% 0.036 -0.1745)
OKLCHoklch(52.12% 0.178 281.7)
XYZxyz(18.4607, 12.9785, 58.0207)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D54CB #C2CB54
analogous
#5487CB #5D54CB #9954CB
triadic
#5D54CB #CB5D54 #54CB5D
tetradic
#5D54CB #CB5487 #C2CB54 #54CB99
square
#5D54CB #CB5487 #C2CB54 #54CB99
split-complementary
#5D54CB #CB9954 #87CB54
monochromatic
#2D267E #3E35AD #5D54CB #8983D9 #B6B2E8

Accessibility & contrast

On white

5.84
#5D54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5D54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D54CB
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D54CB#FFFFFF#000000##FFFFFF
##5D54CB1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#2B7087
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5d54cb;
/* rgb */ color: rgb(93, 84, 203);
/* oklch */ color: oklch(52.1% 0.178 281.7);
Tailwind
colors: {
  custom: {
    50: '#9484dc',
    500: '#5d54cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d54cb;
$custom-light: #9484dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d54cb",
  "rgb": {
    "r": 93,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 244.538,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52124,
    "c": 0.17821,
    "h": 281.7
  },
  "luminance": 0.1298
}

Semantic roles & 50–950 ramp

primary
#5D54CB
secondary
#D2D6A5
accent
#DD4BD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5D54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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