#5E51F2#5E51F2

#5E51F2 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.9% C 0.231 H 279.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5E51F2
RGBrgb(94, 81, 242)
HSLhsl(245, 86%, 63%)
HSVhsv(245, 67%, 95%)
CMYKcmyk(61.2%, 66.5%, 0%, 5.1%)
CIE-LABlab(45.18, 50.45, -79.08)
CIE-LCHlch(45.18, 93.80, 302.54°)
OKLaboklab(54.88% 0.0369 -0.2279)
OKLCHoklch(54.88% 0.231 279.2)
XYZxyz(23.5804, 14.6736, 85.5769)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51F2 #E5F251
analogous
#5194F2 #5E51F2 #AE51F2
triadic
#5E51F2 #F25E51 #51F25E
tetradic
#5E51F2 #F25194 #E5F251 #51F2AE
square
#5E51F2 #F25194 #E5F251 #51F2AE
split-complementary
#5E51F2 #F2AE51 #94F251
monochromatic
#1C0EBB #2918EE #5E51F2 #938AF6 #C7C3FB

Accessibility & contrast

On white

5.34
#5E51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5E51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51F2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51F2#FFFFFF#000000##FFFFFF
##5E51F21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F7
Deuteranopia (green-blind)
#0065EF
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5e51f2;
/* rgb */ color: rgb(94, 81, 242);
/* oklch */ color: oklch(54.9% 0.231 279.2);
Tailwind
colors: {
  custom: {
    50: '#9b83f8',
    500: '#5e51f2',
    950: '#000000',
  },
}
SCSS
$custom: #5e51f2;
$custom-light: #9b83f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51f2",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 244.845,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54878,
    "c": 0.23091,
    "h": 279.2
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#5E51F2
secondary
#E7ECB3
accent
#E303D1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #5E51F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5E51F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva