#5540D5#5540D5

#5540D5 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.216 H 281.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5540D5
RGBrgb(85, 64, 213)
HSLhsl(248, 64%, 54%)
HSVhsv(248, 70%, 84%)
CMYKcmyk(60.1%, 70%, 0%, 16.5%)
CIE-LABlab(38.55, 49.77, -73.49)
CIE-LCHlch(38.55, 88.76, 304.11°)
OKLaboklab(49.18% 0.0425 -0.2118)
OKLCHoklch(49.18% 0.216 281.3)
XYZxyz(17.5862, 10.4009, 64.0188)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540D5 #C0D540
analogous
#4076D5 #5540D5 #9F40D5
triadic
#5540D5 #D55540 #40D555
tetradic
#5540D5 #D54076 #C0D540 #40D59F
square
#5540D5 #D54076 #C0D540 #40D59F
split-complementary
#5540D5 #D59F40 #76D540
monochromatic
#2A1C7F #3A27B1 #5540D5 #8272E0 #AEA4EB

Accessibility & contrast

On white

6.82
#5540D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5540D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540D5
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540D5#FFFFFF#000000##FFFFFF
##5540D51.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#006886
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5540d5;
/* rgb */ color: rgb(85, 64, 213);
/* oklch */ color: oklch(49.2% 0.216 281.3);
Tailwind
colors: {
  custom: {
    50: '#9377e3',
    500: '#5540d5',
    950: '#000000',
  },
}
SCSS
$custom: #5540d5;
$custom-light: #9377e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5540d5",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 248.456,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49177,
    "c": 0.21604,
    "h": 281.3
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#5540D5
secondary
#CFD899
accent
#E741D0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5540D5

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

Preview Lab → · Contrast checker → · Palette generator →

#5540D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva