#5742D7#5742D7

#5742D7 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.8% C 0.216 H 281.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5742D7
RGBrgb(87, 66, 215)
HSLhsl(248, 65%, 55%)
HSVhsv(248, 69%, 84%)
CMYKcmyk(59.5%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.29, 49.56, -73.43)
CIE-LCHlch(39.29, 88.59, 304.02°)
OKLaboklab(49.8% 0.0433 -0.2116)
OKLCHoklch(49.8% 0.216 281.6)
XYZxyz(18.1406, 10.8277, 65.4108)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742D7 #C2D742
analogous
#4278D7 #5742D7 #A142D7
triadic
#5742D7 #D75742 #42D757
tetradic
#5742D7 #D74278 #C2D742 #42D7A1
square
#5742D7 #D74278 #C2D742 #42D7A1
split-complementary
#5742D7 #D7A142 #78D742
monochromatic
#2A1C83 #3B26B5 #5742D7 #8475E2 #B1A7EC

Accessibility & contrast

On white

6.63
#5742D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5742D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742D7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742D7#FFFFFF#000000##FFFFFF
##5742D71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5742d7;
/* rgb */ color: rgb(87, 66, 215);
/* oklch */ color: oklch(49.8% 0.216 281.6);
Tailwind
colors: {
  custom: {
    50: '#9478e5',
    500: '#5742d7',
    950: '#000000',
  },
}
SCSS
$custom: #5742d7;
$custom-light: #9478e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5742d7",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 248.456,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49798,
    "c": 0.21597,
    "h": 281.6
  },
  "luminance": 0.10829
}

Semantic roles & 50–950 ramp

primary
#5742D7
secondary
#D1DA9B
accent
#E840D0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5742D7

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

Preview Lab → · Contrast checker → · Palette generator →

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