#5751E4#5751E4

#5751E4 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.215 H 278.0°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5751E4
RGBrgb(87, 81, 228)
HSLhsl(242, 73%, 61%)
HSVhsv(242, 64%, 89%)
CMYKcmyk(61.8%, 64.5%, 0%, 10.6%)
CIE-LABlab(43.52, 45.09, -73.92)
CIE-LCHlch(43.52, 86.59, 301.38°)
OKLaboklab(53.19% 0.0299 -0.213)
OKLCHoklch(53.19% 0.215 278)
XYZxyz(20.8720, 13.5109, 74.8917)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751E4 #DEE451
analogous
#5194E4 #5751E4 #A051E4
triadic
#5751E4 #E45751 #51E457
tetradic
#5751E4 #E45194 #DEE451 #51E4A0
square
#5751E4 #E45194 #DEE451 #51E4A0
split-complementary
#5751E4 #E4A051 #94E451
monochromatic
#1F19A2 #2921D7 #5751E4 #8A86EC #BDBBF4

Accessibility & contrast

On white

5.67
#5751E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5751E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751E4
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751E4#FFFFFF#000000##FFFFFF
##5751E41.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE9
Deuteranopia (green-blind)
#0061E1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5751e4;
/* rgb */ color: rgb(87, 81, 228);
/* oklch */ color: oklch(53.2% 0.215 278.0);
Tailwind
colors: {
  custom: {
    50: '#9583ee',
    500: '#5751e4',
    950: '#000000',
  },
}
SCSS
$custom: #5751e4;
$custom-light: #9583ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5751e4",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 242.449,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5319,
    "c": 0.21509,
    "h": 278
  },
  "luminance": 0.13513
}

Semantic roles & 50–950 ramp

primary
#5751E4
secondary
#E2E4AC
accent
#D510CD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5751E4

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

Preview Lab → · Contrast checker → · Palette generator →

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