#5740E2#5740E2

#5740E2 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.5% C 0.231 H 280.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5740E2
RGBrgb(87, 64, 226)
HSLhsl(249, 74%, 57%)
HSVhsv(249, 72%, 89%)
CMYKcmyk(61.5%, 71.7%, 0%, 11.4%)
CIE-LABlab(39.89, 53.94, -78.74)
CIE-LCHlch(39.89, 95.45, 304.41°)
OKLaboklab(50.52% 0.0427 -0.2271)
OKLCHoklch(50.52% 0.231 280.6)
XYZxyz(19.4870, 11.1826, 73.0683)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740E2 #CBE240
analogous
#407AE2 #5740E2 #A840E2
triadic
#5740E2 #E25740 #40E257
tetradic
#5740E2 #E2407A #CBE240 #40E2A8
square
#5740E2 #E2407A #CBE240 #40E2A8
split-complementary
#5740E2 #E2A840 #7AE240
monochromatic
#281692 #361EC7 #5740E2 #8675EA #B4AAF2

Accessibility & contrast

On white

6.49
#5740E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5740E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740E2
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740E2#FFFFFF#000000##FFFFFF
##5740E21.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5740e2;
/* rgb */ color: rgb(87, 64, 226);
/* oklch */ color: oklch(50.5% 0.231 280.6);
Tailwind
colors: {
  custom: {
    50: '#9678ec',
    500: '#5740e2',
    950: '#000000',
  },
}
SCSS
$custom: #5740e2;
$custom-light: #9678ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5740e2",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 248.519,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50523,
    "c": 0.23111,
    "h": 280.6
  },
  "luminance": 0.11184
}

Semantic roles & 50–950 ramp

primary
#5740E2
secondary
#D7E09E
accent
#F038D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5740E2

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

Preview Lab → · Contrast checker → · Palette generator →

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