#5540D4#5540D4

#5540D4 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.215 H 281.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5540D4
RGBrgb(85, 64, 212)
HSLhsl(249, 63%, 54%)
HSVhsv(249, 70%, 83%)
CMYKcmyk(59.9%, 69.8%, 0%, 16.9%)
CIE-LABlab(38.46, 49.47, -73.06)
CIE-LCHlch(38.46, 88.24, 304.10°)
OKLaboklab(49.09% 0.0426 -0.2106)
OKLCHoklch(49.09% 0.215 281.4)
XYZxyz(17.4596, 10.3503, 63.3524)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540D4 #BFD440
analogous
#4075D4 #5540D4 #9F40D4
triadic
#5540D4 #D45540 #40D455
tetradic
#5540D4 #D44075 #BFD440 #40D49F
square
#5540D4 #D44075 #BFD440 #40D49F
split-complementary
#5540D4 #D49F40 #75D440
monochromatic
#2A1C7D #3B27AF #5540D4 #8172DF #AEA4EA

Accessibility & contrast

On white

6.84
#5540D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5540D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540D4
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540D4#FFFFFF#000000##FFFFFF
##5540D41.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5540d4;
/* rgb */ color: rgb(85, 64, 212);
/* oklch */ color: oklch(49.1% 0.215 281.4);
Tailwind
colors: {
  custom: {
    50: '#9377e2',
    500: '#5540d4',
    950: '#000000',
  },
}
SCSS
$custom: #5540d4;
$custom-light: #9377e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5540d4",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 248.514,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49086,
    "c": 0.21483,
    "h": 281.4
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#5540D4
secondary
#CED798
accent
#E642CF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5540D4

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

Preview Lab → · Contrast checker → · Palette generator →

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