#5540D2#5540D2

#5540D2 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.212 H 281.7°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5540D2
RGBrgb(85, 64, 210)
HSLhsl(249, 62%, 54%)
HSVhsv(249, 70%, 82%)
CMYKcmyk(59.5%, 69.5%, 0%, 17.6%)
CIE-LABlab(38.29, 48.86, -72.20)
CIE-LCHlch(38.29, 87.18, 304.09°)
OKLaboklab(48.91% 0.043 -0.208)
OKLCHoklch(48.91% 0.212 281.7)
XYZxyz(17.2089, 10.2500, 62.0319)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540D2 #BDD240
analogous
#4074D2 #5540D2 #9E40D2
triadic
#5540D2 #D25540 #40D255
tetradic
#5540D2 #D24074 #BDD240 #40D29E
square
#5540D2 #D24074 #BDD240 #40D29E
split-complementary
#5540D2 #D29E40 #74D240
monochromatic
#2A1D7B #3C29AC #5540D2 #8172DE #ADA3E9

Accessibility & contrast

On white

6.88
#5540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540D2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540D2#FFFFFF#000000##FFFFFF
##5540D21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5540d2;
/* rgb */ color: rgb(85, 64, 210);
/* oklch */ color: oklch(48.9% 0.212 281.7);
Tailwind
colors: {
  custom: {
    50: '#9277e1',
    500: '#5540d2',
    950: '#000000',
  },
}
SCSS
$custom: #5540d2;
$custom-light: #9277e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5540d2",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 248.63,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48906,
    "c": 0.21242,
    "h": 281.7
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#5540D2
secondary
#CDD698
accent
#E543CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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