#5740E1#5740E1

#5740E1 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.230 H 280.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5740E1
RGBrgb(87, 64, 225)
HSLhsl(249, 73%, 57%)
HSVhsv(249, 72%, 88%)
CMYKcmyk(61.3%, 71.6%, 0%, 11.8%)
CIE-LABlab(39.79, 53.64, -78.32)
CIE-LCHlch(39.79, 94.93, 304.41°)
OKLaboklab(50.43% 0.0429 -0.2259)
OKLCHoklch(50.43% 0.23 280.7)
XYZxyz(19.3502, 11.1278, 72.3478)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740E1 #CAE140
analogous
#407AE1 #5740E1 #A740E1
triadic
#5740E1 #E15740 #40E157
tetradic
#5740E1 #E1407A #CAE140 #40E1A7
square
#5740E1 #E1407A #CAE140 #40E1A7
split-complementary
#5740E1 #E1A740 #7AE140
monochromatic
#281790 #371FC5 #5740E1 #8675E9 #B4AAF2

Accessibility & contrast

On white

6.51
#5740E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5740E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740E1
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740E1#FFFFFF#000000##FFFFFF
##5740E11.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0058DE
Tritanopia (blue-blind)
#006C8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5740e1;
/* rgb */ color: rgb(87, 64, 225);
/* oklch */ color: oklch(50.4% 0.230 280.7);
Tailwind
colors: {
  custom: {
    50: '#9678ec',
    500: '#5740e1',
    950: '#000000',
  },
}
SCSS
$custom: #5740e1;
$custom-light: #9678ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5740e1",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 248.571,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50431,
    "c": 0.22993,
    "h": 280.7
  },
  "luminance": 0.11129
}

Semantic roles & 50–950 ramp

primary
#5740E1
secondary
#D6DF9D
accent
#F038D5
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5740E1

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

Preview Lab → · Contrast checker → · Palette generator →

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