#5741D8#5741D8

#5741D8 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.7% C 0.218 H 281.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5741D8
RGBrgb(87, 65, 216)
HSLhsl(249, 66%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.7%, 69.9%, 0%, 15.3%)
CIE-LABlab(39.18, 50.41, -74.19)
CIE-LCHlch(39.18, 89.69, 304.20°)
OKLaboklab(49.75% 0.0439 -0.2138)
OKLCHoklch(49.75% 0.218 281.6)
XYZxyz(18.2116, 10.7634, 66.0703)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741D8 #C2D841
analogous
#4176D8 #5741D8 #A341D8
triadic
#5741D8 #D85741 #41D857
tetradic
#5741D8 #D84176 #C2D841 #41D8A3
square
#5741D8 #D84176 #C2D841 #41D8A3
split-complementary
#5741D8 #D8A341 #76D841
monochromatic
#2A1B84 #3B25B6 #5741D8 #8474E2 #B1A7ED

Accessibility & contrast

On white

6.66
#5741D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5741D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5741D8
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741D8#FFFFFF#000000##FFFFFF
##5741D81.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5741d8;
/* rgb */ color: rgb(87, 65, 216);
/* oklch */ color: oklch(49.7% 0.218 281.6);
Tailwind
colors: {
  custom: {
    50: '#9478e5',
    500: '#5741d8',
    950: '#000000',
  },
}
SCSS
$custom: #5741d8;
$custom-light: #9478e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5741d8",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 248.742,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49746,
    "c": 0.21824,
    "h": 281.6
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#5741D8
secondary
#D1DA9B
accent
#E93FD0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5741D8

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

Preview Lab → · Contrast checker → · Palette generator →

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