#5840DD#5840DD

#5840DD is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.225 H 281.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5840DD
RGBrgb(88, 64, 221)
HSLhsl(249, 70%, 56%)
HSVhsv(249, 71%, 87%)
CMYKcmyk(60.2%, 71%, 0%, 13.3%)
CIE-LABlab(39.51, 52.58, -76.50)
CIE-LCHlch(39.51, 92.83, 304.50°)
OKLaboklab(50.14% 0.045 -0.2205)
OKLCHoklch(50.14% 0.225 281.5)
XYZxyz(18.9050, 10.9606, 69.5120)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840DD #C5DD40
analogous
#4076DD #5840DD #A640DD
triadic
#5840DD #DD5840 #40DD58
tetradic
#5840DD #DD4076 #C5DD40 #40DDA6
square
#5840DD #DD4076 #C5DD40 #40DDA6
split-complementary
#5840DD #DDA640 #76DD40
monochromatic
#2A198A #3A22BE #5840DD #8574E6 #B3A8EF

Accessibility & contrast

On white

6.58
#5840DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5840DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840DD
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840DD#FFFFFF#000000##FFFFFF
##5840DD1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E2
Deuteranopia (green-blind)
#0057DA
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5840dd;
/* rgb */ color: rgb(88, 64, 221);
/* oklch */ color: oklch(50.1% 0.225 281.5);
Tailwind
colors: {
  custom: {
    50: '#9677e9',
    500: '#5840dd',
    950: '#000000',
  },
}
SCSS
$custom: #5840dd;
$custom-light: #9677e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5840dd",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 249.172,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50141,
    "c": 0.22507,
    "h": 281.5
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#5840DD
secondary
#D3DD9C
accent
#ED3BD1
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5840DD

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

Preview Lab → · Contrast checker → · Palette generator →

#5840DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva