#5741E2#5741E2

#5741E2 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.7% C 0.230 H 280.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5741E2
RGBrgb(87, 65, 226)
HSLhsl(248, 74%, 57%)
HSVhsv(248, 71%, 89%)
CMYKcmyk(61.5%, 71.2%, 0%, 11.4%)
CIE-LABlab(40.08, 53.41, -78.43)
CIE-LCHlch(40.08, 94.89, 304.25°)
OKLaboklab(50.66% 0.042 -0.2262)
OKLCHoklch(50.66% 0.23 280.5)
XYZxyz(19.5439, 11.2964, 73.0873)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741E2 #CCE241
analogous
#417BE2 #5741E2 #A841E2
triadic
#5741E2 #E25741 #41E257
tetradic
#5741E2 #E2417B #CCE241 #41E2A8
square
#5741E2 #E2417B #CCE241 #41E2A8
split-complementary
#5741E2 #E2A841 #7BE241
monochromatic
#271692 #361EC7 #5741E2 #8676EA #B5ABF2

Accessibility & contrast

On white

6.44
#5741E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5741E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741E2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741E2#FFFFFF#000000##FFFFFF
##5741E21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5741e2;
/* rgb */ color: rgb(87, 65, 226);
/* oklch */ color: oklch(50.7% 0.230 280.5);
Tailwind
colors: {
  custom: {
    50: '#9678ec',
    500: '#5741e2',
    950: '#000000',
  },
}
SCSS
$custom: #5741e2;
$custom-light: #9678ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5741e2",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 226
  },
  "hsl": {
    "h": 248.199,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.23009,
    "h": 280.5
  },
  "luminance": 0.11298
}

Semantic roles & 50–950 ramp

primary
#5741E2
secondary
#D7E09F
accent
#F038D7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5741E2

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

Preview Lab → · Contrast checker → · Palette generator →

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