#5741DF#5741DF

#5741DF is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.227 H 280.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5741DF
RGBrgb(87, 65, 223)
HSLhsl(248, 71%, 56%)
HSVhsv(248, 71%, 87%)
CMYKcmyk(61%, 70.9%, 0%, 12.5%)
CIE-LABlab(39.80, 52.52, -77.17)
CIE-LCHlch(39.80, 93.34, 304.24°)
OKLaboklab(50.38% 0.0426 -0.2225)
OKLCHoklch(50.38% 0.227 280.8)
XYZxyz(19.1359, 11.1331, 70.9383)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741DF #C9DF41
analogous
#417ADF #5741DF #A641DF
triadic
#5741DF #DF5741 #41DF57
tetradic
#5741DF #DF417A #C9DF41 #41DFA6
square
#5741DF #DF417A #C9DF41 #41DFA6
split-complementary
#5741DF #DFA641 #7ADF41
monochromatic
#28188E #3721C2 #5741DF #8575E8 #B4AAF1

Accessibility & contrast

On white

6.51
#5741DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5741DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741DF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741DF#FFFFFF#000000##FFFFFF
##5741DF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5741df;
/* rgb */ color: rgb(87, 65, 223);
/* oklch */ color: oklch(50.4% 0.227 280.8);
Tailwind
colors: {
  custom: {
    50: '#9578ea',
    500: '#5741df',
    950: '#000000',
  },
}
SCSS
$custom: #5741df;
$custom-light: #9578ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5741df",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 248.354,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.22656,
    "h": 280.8
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#5741DF
secondary
#D5DE9D
accent
#EE3AD5
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5741DF

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

Preview Lab → · Contrast checker → · Palette generator →

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