#5746E4#5746E4

#5746E4 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.5% C 0.227 H 279.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5746E4
RGBrgb(87, 70, 228)
HSLhsl(246, 75%, 58%)
HSVhsv(246, 69%, 89%)
CMYKcmyk(61.8%, 69.3%, 0%, 10.6%)
CIE-LABlab(41.23, 51.32, -77.68)
CIE-LCHlch(41.23, 93.10, 303.45°)
OKLaboklab(51.53% 0.0381 -0.224)
OKLCHoklch(51.53% 0.227 279.7)
XYZxyz(20.1198, 12.0065, 74.6410)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5746E4 #D3E446
analogous
#4684E4 #5746E4 #A646E4
triadic
#5746E4 #E45746 #46E457
tetradic
#5746E4 #E44684 #D3E446 #46E4A6
square
#5746E4 #E44684 #D3E446 #46E4A6
split-complementary
#5746E4 #E4A646 #84E446
monochromatic
#241699 #311ECF #5746E4 #877BEC #B8B1F4

Accessibility & contrast

On white

6.17
#5746E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5746E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5746E4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5746E4#FFFFFF#000000##FFFFFF
##5746E41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E9
Deuteranopia (green-blind)
#005BE1
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5746e4;
/* rgb */ color: rgb(87, 70, 228);
/* oklch */ color: oklch(51.5% 0.227 279.7);
Tailwind
colors: {
  custom: {
    50: '#967bee',
    500: '#5746e4',
    950: '#000000',
  },
}
SCSS
$custom: #5746e4;
$custom-light: #967bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5746e4",
  "rgb": {
    "r": 87,
    "g": 70,
    "b": 228
  },
  "hsl": {
    "h": 246.456,
    "s": 74.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51533,
    "c": 0.22726,
    "h": 279.7
  },
  "luminance": 0.12008
}

Semantic roles & 50–950 ramp

primary
#5746E4
secondary
#DCE2A4
accent
#F137DD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5746E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5746E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva