#5840FF#5840FF

#5840FF is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 53.4% C 0.264 H 278.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5840FF
RGBrgb(88, 64, 255)
HSLhsl(248, 100%, 63%)
HSVhsv(248, 75%, 100%)
CMYKcmyk(65.5%, 74.9%, 0%, 0%)
CIE-LABlab(42.70, 62.57, -90.45)
CIE-LCHlch(42.70, 109.99, 304.67°)
OKLaboklab(53.35% 0.0378 -0.2613)
OKLCHoklch(53.35% 0.264 278.2)
XYZxyz(23.9021, 12.9595, 95.8302)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840FF #E7FF40
analogous
#4088FF #5840FF #B740FF
triadic
#5840FF #FF5840 #40FF58
tetradic
#5840FF #FF4088 #E7FF40 #40FFB7
square
#5840FF #FF4088 #E7FF40 #40FFB7
split-complementary
#5840FF #FFB740 #88FF40
monochromatic
#1900C5 #2203FF #5840FF #8E7DFF #C3BAFF

Accessibility & contrast

On white

5.85
#5840FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5840FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840FF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840FF#FFFFFF#000000##FFFFFF
##5840FF1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#005DFC
Tritanopia (blue-blind)
#00789E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5840ff;
/* rgb */ color: rgb(88, 64, 255);
/* oklch */ color: oklch(53.4% 0.264 278.2);
Tailwind
colors: {
  custom: {
    50: '#9c79ff',
    500: '#5840ff',
    950: '#000000',
  },
}
SCSS
$custom: #5840ff;
$custom-light: #9c79ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5840ff",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 247.539,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.53353,
    "c": 0.26399,
    "h": 278.2
  },
  "luminance": 0.12961
}

Semantic roles & 50–950 ramp

primary
#5840FF
secondary
#E7F0AB
accent
#E600C9
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100918
muted
#7F7B86

Preview Lab

Preview with #5840FF

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

Preview Lab → · Contrast checker → · Palette generator →

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