#5742E2#5742E2

#5742E2 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.229 H 280.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5742E2
RGBrgb(87, 66, 226)
HSLhsl(248, 73%, 57%)
HSVhsv(248, 71%, 89%)
CMYKcmyk(61.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.27, 52.88, -78.12)
CIE-LCHlch(40.27, 94.34, 304.10°)
OKLaboklab(50.79% 0.0413 -0.2253)
OKLCHoklch(50.79% 0.229 280.4)
XYZxyz(19.6018, 11.4122, 73.1066)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742E2 #CDE242
analogous
#427DE2 #5742E2 #A742E2
triadic
#5742E2 #E25742 #42E257
tetradic
#5742E2 #E2427D #CDE242 #42E2A7
square
#5742E2 #E2427D #CDE242 #42E2A7
split-complementary
#5742E2 #E2A742 #7DE242
monochromatic
#271793 #351FC8 #5742E2 #8677EA #B5ACF2

Accessibility & contrast

On white

6.40
#5742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5742E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742E2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742E2#FFFFFF#000000##FFFFFF
##5742E21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5742e2;
/* rgb */ color: rgb(87, 66, 226);
/* oklch */ color: oklch(50.8% 0.229 280.4);
Tailwind
colors: {
  custom: {
    50: '#9679ec',
    500: '#5742e2',
    950: '#000000',
  },
}
SCSS
$custom: #5742e2;
$custom-light: #9679ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5742e2",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 247.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50793,
    "c": 0.22907,
    "h": 280.4
  },
  "luminance": 0.11414
}

Semantic roles & 50–950 ramp

primary
#5742E2
secondary
#D8E09F
accent
#F038D8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5742E2

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

Preview Lab → · Contrast checker → · Palette generator →

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