#5540DB#5540DB

#5540DB is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.223 H 280.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5540DB
RGBrgb(85, 64, 219)
HSLhsl(248, 68%, 55%)
HSVhsv(248, 71%, 86%)
CMYKcmyk(61.2%, 70.8%, 0%, 14.1%)
CIE-LABlab(39.09, 51.59, -76.06)
CIE-LCHlch(39.09, 91.90, 304.15°)
OKLaboklab(49.72% 0.0414 -0.2193)
OKLCHoklch(49.72% 0.223 280.7)
XYZxyz(18.3619, 10.7112, 68.1040)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540DB #C6DB40
analogous
#4078DB #5540DB #A240DB
triadic
#5540DB #DB5540 #40DB55
tetradic
#5540DB #DB4078 #C6DB40 #40DBA2
square
#5540DB #DB4078 #C6DB40 #40DBA2
split-complementary
#5540DB #DBA240 #78DB40
monochromatic
#281987 #3823BB #5540DB #8373E5 #B1A7EE

Accessibility & contrast

On white

6.68
#5540DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5540DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5540DB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540DB#FFFFFF#000000##FFFFFF
##5540DB1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0056D8
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5540db;
/* rgb */ color: rgb(85, 64, 219);
/* oklch */ color: oklch(49.7% 0.223 280.7);
Tailwind
colors: {
  custom: {
    50: '#9477e7',
    500: '#5540db',
    950: '#000000',
  },
}
SCSS
$custom: #5540db;
$custom-light: #9477e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5540db",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 248.129,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49723,
    "c": 0.2232,
    "h": 280.7
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

primary
#5540DB
secondary
#D3DC9B
accent
#EB3DD3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5540DB

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

Preview Lab → · Contrast checker → · Palette generator →

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