#5745DC#5745DC

#5745DC is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.7% C 0.219 H 280.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5745DC
RGBrgb(87, 69, 220)
HSLhsl(247, 68%, 57%)
HSVhsv(247, 69%, 86%)
CMYKcmyk(60.5%, 68.6%, 0%, 13.7%)
CIE-LABlab(40.33, 49.43, -74.60)
CIE-LCHlch(40.33, 89.49, 303.53°)
OKLaboklab(50.67% 0.0402 -0.215)
OKLCHoklch(50.67% 0.219 280.6)
XYZxyz(18.9728, 11.4484, 68.9062)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745DC #CADC45
analogous
#457FDC #5745DC #A245DC
triadic
#5745DC #DC5745 #45DC57
tetradic
#5745DC #DC457F #CADC45 #45DCA2
square
#5745DC #DC457F #CADC45 #45DCA2
split-complementary
#5745DC #DCA245 #7FDC45
monochromatic
#281A8C #3724C0 #5745DC #8679E6 #B4ACEF

Accessibility & contrast

On white

6.38
#5745DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5745DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5745DC
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5745DC#FFFFFF#000000##FFFFFF
##5745DC1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5745dc;
/* rgb */ color: rgb(87, 69, 220);
/* oklch */ color: oklch(50.7% 0.219 280.6);
Tailwind
colors: {
  custom: {
    50: '#957ae8',
    500: '#5745dc',
    950: '#000000',
  },
}
SCSS
$custom: #5745dc;
$custom-light: #957ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5745dc",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 247.152,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50674,
    "c": 0.21873,
    "h": 280.6
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#5745DC
secondary
#D6DDA0
accent
#EB3DD6
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5745DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5745DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva