#5740E3#5740E3

#5740E3 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.6% C 0.232 H 280.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5740E3
RGBrgb(87, 64, 227)
HSLhsl(248, 74%, 57%)
HSVhsv(248, 72%, 89%)
CMYKcmyk(61.7%, 71.8%, 0%, 11%)
CIE-LABlab(39.98, 54.24, -79.16)
CIE-LCHlch(39.98, 95.96, 304.42°)
OKLaboklab(50.62% 0.0425 -0.2283)
OKLCHoklch(50.62% 0.232 280.5)
XYZxyz(19.6246, 11.2376, 73.7931)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740E3 #CCE340
analogous
#407BE3 #5740E3 #A840E3
triadic
#5740E3 #E35740 #40E357
tetradic
#5740E3 #E3407B #CCE340 #40E3A8
square
#5740E3 #E3407B #CCE340 #40E3A8
split-complementary
#5740E3 #E3A840 #7BE340
monochromatic
#271693 #361DC8 #5740E3 #8675EB #B5ABF3

Accessibility & contrast

On white

6.47
#5740E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5740E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5740E3
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740E3#FFFFFF#000000##FFFFFF
##5740E31.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#0058E0
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5740e3;
/* rgb */ color: rgb(87, 64, 227);
/* oklch */ color: oklch(50.6% 0.232 280.5);
Tailwind
colors: {
  custom: {
    50: '#9678ed',
    500: '#5740e3',
    950: '#000000',
  },
}
SCSS
$custom: #5740e3;
$custom-light: #9678ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5740e3",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 248.466,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50616,
    "c": 0.23227,
    "h": 280.5
  },
  "luminance": 0.11239
}

Semantic roles & 50–950 ramp

primary
#5740E3
secondary
#D7E19E
accent
#F137D7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5740E3

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

Preview Lab → · Contrast checker → · Palette generator →

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