#5742DF#5742DF

#5742DF is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.5% C 0.226 H 280.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5742DF
RGBrgb(87, 66, 223)
HSLhsl(248, 71%, 57%)
HSVhsv(248, 70%, 87%)
CMYKcmyk(61%, 70.4%, 0%, 12.5%)
CIE-LABlab(40.00, 51.98, -76.85)
CIE-LCHlch(40.00, 92.78, 304.07°)
OKLaboklab(50.52% 0.0419 -0.2216)
OKLCHoklch(50.52% 0.226 280.7)
XYZxyz(19.1938, 11.2490, 70.9576)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742DF #CADF42
analogous
#427CDF #5742DF #A542DF
triadic
#5742DF #DF5742 #42DF57
tetradic
#5742DF #DF427C #CADF42 #42DFA5
square
#5742DF #DF427C #CADF42 #42DFA5
split-complementary
#5742DF #DFA542 #7CDF42
monochromatic
#28188E #3721C3 #5742DF #8676E8 #B4ABF1

Accessibility & contrast

On white

6.46
#5742DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5742DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5742DF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742DF#FFFFFF#000000##FFFFFF
##5742DF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5742df;
/* rgb */ color: rgb(87, 66, 223);
/* oklch */ color: oklch(50.5% 0.226 280.7);
Tailwind
colors: {
  custom: {
    50: '#9579ea',
    500: '#5742df',
    950: '#000000',
  },
}
SCSS
$custom: #5742df;
$custom-light: #9579ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5742df",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 248.025,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50519,
    "c": 0.22552,
    "h": 280.7
  },
  "luminance": 0.1125
}

Semantic roles & 50–950 ramp

primary
#5742DF
secondary
#D6DF9E
accent
#EE3AD6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5742DF

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

Preview Lab → · Contrast checker → · Palette generator →

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