#5540E3#5540E3

#5540E3 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.5% C 0.233 H 279.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5540E3
RGBrgb(85, 64, 227)
HSLhsl(248, 74%, 57%)
HSVhsv(248, 72%, 89%)
CMYKcmyk(62.6%, 71.8%, 0%, 11%)
CIE-LABlab(39.82, 53.99, -79.43)
CIE-LCHlch(39.82, 96.04, 304.21°)
OKLaboklab(50.46% 0.0398 -0.2292)
OKLCHoklch(50.46% 0.233 279.9)
XYZxyz(19.4404, 11.1426, 73.7844)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540E3 #CEE340
analogous
#407DE3 #5540E3 #A740E3
triadic
#5540E3 #E35540 #40E355
tetradic
#5540E3 #E3407D #CEE340 #40E3A7
square
#5540E3 #E3407D #CEE340 #40E3A7
split-complementary
#5540E3 #E3A740 #7DE340
monochromatic
#261693 #331DC8 #5540E3 #8575EB #B4ABF3

Accessibility & contrast

On white

6.50
#5540E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5540E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540E3
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540E3#FFFFFF#000000##FFFFFF
##5540E31.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#0057E0
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5540e3;
/* rgb */ color: rgb(85, 64, 227);
/* oklch */ color: oklch(50.5% 0.233 279.9);
Tailwind
colors: {
  custom: {
    50: '#9577ed',
    500: '#5540e3',
    950: '#000000',
  },
}
SCSS
$custom: #5540e3;
$custom-light: #9577ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5540e3",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 247.73,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.23262,
    "h": 279.9
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#5540E3
secondary
#D8E19E
accent
#F137D9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5540E3

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

Preview Lab → · Contrast checker → · Palette generator →

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