#5754F2#5754F2

#5754F2 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.229 H 276.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5754F2
RGBrgb(87, 84, 242)
HSLhsl(241, 86%, 64%)
HSVhsv(241, 65%, 95%)
CMYKcmyk(64%, 65.3%, 0%, 5.1%)
CIE-LABlab(45.33, 47.80, -78.87)
CIE-LCHlch(45.33, 92.22, 301.22°)
OKLaboklab(54.85% 0.0262 -0.2275)
OKLCHoklch(54.85% 0.229 276.6)
XYZxyz(23.1226, 14.7757, 85.6207)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5754F2 #EFF254
analogous
#54A0F2 #5754F2 #A654F2
triadic
#5754F2 #F25754 #54F257
tetradic
#5754F2 #F254A0 #EFF254 #54F2A6
square
#5754F2 #F254A0 #EFF254 #54F2A6
split-complementary
#5754F2 #F2A654 #A0F254
monochromatic
#120EBD #1F1BEE #5754F2 #8F8DF6 #C7C6FB

Accessibility & contrast

On white

5.31
#5754F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5754F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5754F2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5754F2#FFFFFF#000000##FFFFFF
##5754F21.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#0064EF
Tritanopia (blue-blind)
#007D9C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5754f2;
/* rgb */ color: rgb(87, 84, 242);
/* oklch */ color: oklch(54.9% 0.229 276.6);
Tailwind
colors: {
  custom: {
    50: '#9785f8',
    500: '#5754f2',
    950: '#000000',
  },
}
SCSS
$custom: #5754f2;
$custom-light: #9785f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5754f2",
  "rgb": {
    "r": 87,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 241.139,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.54854,
    "c": 0.22901,
    "h": 276.6
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#5754F2
secondary
#ECEDB5
accent
#E203DE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5754F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5754F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva