#5540E2#5540E2

#5540E2 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.231 H 280.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5540E2
RGBrgb(85, 64, 226)
HSLhsl(248, 74%, 57%)
HSVhsv(248, 72%, 89%)
CMYKcmyk(62.4%, 71.7%, 0%, 11.4%)
CIE-LABlab(39.73, 53.69, -79.01)
CIE-LCHlch(39.73, 95.53, 304.20°)
OKLaboklab(50.37% 0.04 -0.228)
OKLCHoklch(50.37% 0.231 280)
XYZxyz(19.3028, 11.0876, 73.0597)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540E2 #CDE240
analogous
#407CE2 #5540E2 #A640E2
triadic
#5540E2 #E25540 #40E255
tetradic
#5540E2 #E2407C #CDE240 #40E2A6
square
#5540E2 #E2407C #CDE240 #40E2A6
split-complementary
#5540E2 #E2A640 #7CE240
monochromatic
#261692 #341EC7 #5540E2 #8475EA #B4AAF2

Accessibility & contrast

On white

6.53
#5540E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5540E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540E2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540E2#FFFFFF#000000##FFFFFF
##5540E21.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5540e2;
/* rgb */ color: rgb(85, 64, 226);
/* oklch */ color: oklch(50.4% 0.231 280.0);
Tailwind
colors: {
  custom: {
    50: '#9577ec',
    500: '#5540e2',
    950: '#000000',
  },
}
SCSS
$custom: #5540e2;
$custom-light: #9577ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5540e2",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 247.778,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50371,
    "c": 0.23145,
    "h": 280
  },
  "luminance": 0.11089
}

Semantic roles & 50–950 ramp

primary
#5540E2
secondary
#D7E09E
accent
#F038D8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5540E2

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

Preview Lab → · Contrast checker → · Palette generator →

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