#5540CA#5540CA

#5540CA is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.203 H 282.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5540CA
RGBrgb(85, 64, 202)
HSLhsl(249, 57%, 52%)
HSVhsv(249, 68%, 79%)
CMYKcmyk(57.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.59, 46.43, -68.71)
CIE-LCHlch(37.59, 82.93, 304.05°)
OKLaboklab(48.2% 0.0443 -0.1978)
OKLCHoklch(48.2% 0.203 282.6)
XYZxyz(16.2371, 9.8613, 56.9135)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5540CA #B5CA40
analogous
#4070CA #5540CA #9A40CA
triadic
#5540CA #CA5540 #40CA55
tetradic
#5540CA #CA4070 #B5CA40 #40CA9A
square
#5540CA #CA4070 #B5CA40 #40CA9A
split-complementary
#5540CA #CA9A40 #70CA40
monochromatic
#2C1F70 #3E2CA0 #5540CA #8070D7 #AAA0E5

Accessibility & contrast

On white

7.06
#5540CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5540CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5540CA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5540CA#FFFFFF#000000##FFFFFF
##5540CA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#0E6480
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5540ca;
/* rgb */ color: rgb(85, 64, 202);
/* oklch */ color: oklch(48.2% 0.203 282.6);
Tailwind
colors: {
  custom: {
    50: '#9177db',
    500: '#5540ca',
    950: '#000000',
  },
}
SCSS
$custom: #5540ca;
$custom-light: #9177db;
$custom-dark: #000000;
JSON
{
  "hex": "#5540ca",
  "rgb": {
    "r": 85,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 249.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48195,
    "c": 0.2027,
    "h": 282.6
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#5540CA
secondary
#C8D195
accent
#E048C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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