#5742E1#5742E1

#5742E1 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.7% C 0.228 H 280.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5742E1
RGBrgb(87, 66, 225)
HSLhsl(248, 73%, 57%)
HSVhsv(248, 71%, 88%)
CMYKcmyk(61.3%, 70.7%, 0%, 11.8%)
CIE-LABlab(40.18, 52.58, -77.70)
CIE-LCHlch(40.18, 93.82, 304.09°)
OKLaboklab(50.7% 0.0415 -0.2241)
OKLCHoklch(50.7% 0.228 280.5)
XYZxyz(19.4650, 11.3575, 72.3860)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742E1 #CCE142
analogous
#427CE1 #5742E1 #A742E1
triadic
#5742E1 #E15742 #42E157
tetradic
#5742E1 #E1427C #CCE142 #42E1A7
square
#5742E1 #E1427C #CCE142 #42E1A7
split-complementary
#5742E1 #E1A742 #7CE142
monochromatic
#271792 #361FC6 #5742E1 #8677E9 #B5ACF2

Accessibility & contrast

On white

6.42
#5742E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5742E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742E1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742E1#FFFFFF#000000##FFFFFF
##5742E11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5742e1;
/* rgb */ color: rgb(87, 66, 225);
/* oklch */ color: oklch(50.7% 0.228 280.5);
Tailwind
colors: {
  custom: {
    50: '#9679ec',
    500: '#5742e1',
    950: '#000000',
  },
}
SCSS
$custom: #5742e1;
$custom-light: #9679ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5742e1",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 247.925,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.22789,
    "h": 280.5
  },
  "luminance": 0.11359
}

Semantic roles & 50–950 ramp

primary
#5742E1
secondary
#D7E09F
accent
#EF38D7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5742E1

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

Preview Lab → · Contrast checker → · Palette generator →

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