#5540E1#5540E1

#5540E1 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.3% C 0.230 H 280.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5540E1
RGBrgb(85, 64, 225)
HSLhsl(248, 73%, 57%)
HSVhsv(248, 72%, 88%)
CMYKcmyk(62.2%, 71.6%, 0%, 11.8%)
CIE-LABlab(39.64, 53.39, -78.59)
CIE-LCHlch(39.64, 95.01, 304.19°)
OKLaboklab(50.28% 0.0402 -0.2267)
OKLCHoklch(50.28% 0.23 280.1)
XYZxyz(19.1660, 11.0329, 72.3391)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540E1 #CCE140
analogous
#407CE1 #5540E1 #A640E1
triadic
#5540E1 #E15540 #40E155
tetradic
#5540E1 #E1407C #CCE140 #40E1A6
square
#5540E1 #E1407C #CCE140 #40E1A6
split-complementary
#5540E1 #E1A640 #7CE140
monochromatic
#261790 #351FC5 #5540E1 #8475E9 #B3AAF2

Accessibility & contrast

On white

6.55
#5540E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5540E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540E1
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540E1#FFFFFF#000000##FFFFFF
##5540E11.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0057DE
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5540e1;
/* rgb */ color: rgb(85, 64, 225);
/* oklch */ color: oklch(50.3% 0.230 280.1);
Tailwind
colors: {
  custom: {
    50: '#9577ec',
    500: '#5540e1',
    950: '#000000',
  },
}
SCSS
$custom: #5540e1;
$custom-light: #9577ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5540e1",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 247.826,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50278,
    "c": 0.23028,
    "h": 280.1
  },
  "luminance": 0.11034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5540E1

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

Preview Lab → · Contrast checker → · Palette generator →

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