#5741C7#5741C7

#5741C7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.2% C 0.198 H 283.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5741C7
RGBrgb(87, 65, 199)
HSLhsl(250, 54%, 52%)
HSVhsv(250, 67%, 78%)
CMYKcmyk(56.3%, 67.3%, 0%, 22%)
CIE-LABlab(37.72, 45.27, -66.75)
CIE-LCHlch(37.72, 80.66, 304.14°)
OKLaboklab(48.25% 0.0466 -0.192)
OKLCHoklch(48.25% 0.198 283.6)
XYZxyz(16.1264, 9.9294, 55.0885)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741C7 #B1C741
analogous
#416EC7 #5741C7 #9A41C7
triadic
#5741C7 #C75741 #41C757
tetradic
#5741C7 #C7416E #B1C741 #41C79A
square
#5741C7 #C7416E #B1C741 #41C79A
split-complementary
#5741C7 #C79A41 #6EC741
monochromatic
#2D206D #402E9D #5741C7 #8170D5 #ABA0E3

Accessibility & contrast

On white

7.03
#5741C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5741C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741C7
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741C7#FFFFFF#000000##FFFFFF
##5741C71.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCB
Deuteranopia (green-blind)
#0054C4
Tritanopia (blue-blind)
#1F637F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5741c7;
/* rgb */ color: rgb(87, 65, 199);
/* oklch */ color: oklch(48.2% 0.198 283.6);
Tailwind
colors: {
  custom: {
    50: '#9177d9',
    500: '#5741c7',
    950: '#000000',
  },
}
SCSS
$custom: #5741c7;
$custom-light: #9177d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5741c7",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 199
  },
  "hsl": {
    "h": 249.851,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48247,
    "c": 0.19758,
    "h": 283.6
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#5741C7
secondary
#C6CF95
accent
#DE4AC6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5741C7

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

Preview Lab → · Contrast checker → · Palette generator →

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