#5740FF#5740FF

#5740FF is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 53.3% C 0.264 H 277.9°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5740FF
RGBrgb(87, 64, 255)
HSLhsl(247, 100%, 63%)
HSVhsv(247, 75%, 100%)
CMYKcmyk(65.9%, 74.9%, 0%, 0%)
CIE-LABlab(42.63, 62.47, -90.58)
CIE-LCHlch(42.63, 110.03, 304.59°)
OKLaboklab(53.28% 0.0365 -0.2617)
OKLCHoklch(53.28% 0.264 277.9)
XYZxyz(23.8080, 12.9110, 95.8258)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740FF #E8FF40
analogous
#4089FF #5740FF #B640FF
triadic
#5740FF #FF5740 #40FF57
tetradic
#5740FF #FF4089 #E8FF40 #40FFB6
square
#5740FF #FF4089 #E8FF40 #40FFB6
split-complementary
#5740FF #FFB640 #89FF40
monochromatic
#1800C5 #2103FF #5740FF #8D7DFF #C3BAFF

Accessibility & contrast

On white

5.86
#5740FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5740FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740FF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740FF#FFFFFF#000000##FFFFFF
##5740FF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.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: #5740ff;
/* rgb */ color: rgb(87, 64, 255);
/* oklch */ color: oklch(53.3% 0.264 277.9);
Tailwind
colors: {
  custom: {
    50: '#9b79ff',
    500: '#5740ff',
    950: '#000000',
  },
}
SCSS
$custom: #5740ff;
$custom-light: #9b79ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ff",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 247.225,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.53283,
    "c": 0.26419,
    "h": 277.9
  },
  "luminance": 0.12913
}

Semantic roles & 50–950 ramp

primary
#5740FF
secondary
#E8F0AB
accent
#E600CA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100918
muted
#7F7B86

Preview Lab

Preview with #5740FF

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

Preview Lab → · Contrast checker → · Palette generator →

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