#5E5FEC#5E5FEC

#5E5FEC is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.6% C 0.207 H 277.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5E5FEC
RGBrgb(94, 95, 236)
HSLhsl(240, 79%, 65%)
HSVhsv(240, 60%, 93%)
CMYKcmyk(60.2%, 59.7%, 0%, 7.5%)
CIE-LABlab(47.78, 40.45, -71.48)
CIE-LCHlch(47.78, 82.13, 299.50°)
OKLaboklab(56.62% 0.0259 -0.2056)
OKLCHoklch(56.62% 0.207 277.2)
XYZxyz(23.8437, 16.6184, 81.2918)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5FEC #ECEB5E
analogous
#5EA6EC #5E5FEC #A45EEC
triadic
#5E5FEC #EC5E5F #5FEC5E
tetradic
#5E5FEC #EC5EA6 #ECEB5E #5EECA4
square
#5E5FEC #EC5EA6 #ECEB5E #5EECA4
split-complementary
#5E5FEC #ECA45E #A6EC5E
monochromatic
#1617BA #2729E6 #5E5FEC #9595F2 #CBCCF9

Accessibility & contrast

On white

4.86
#5E5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5E5FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5FEC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5FEC#FFFFFF#000000##FFFFFF
##5E5FEC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#006BE9
Tritanopia (blue-blind)
#00829C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5e5fec;
/* rgb */ color: rgb(94, 95, 236);
/* oklch */ color: oklch(56.6% 0.207 277.2);
Tailwind
colors: {
  custom: {
    50: '#998cf3',
    500: '#5e5fec',
    950: '#000000',
  },
}
SCSS
$custom: #5e5fec;
$custom-light: #998cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5fec",
  "rgb": {
    "r": 94,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 239.577,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.56621,
    "c": 0.20722,
    "h": 277.2
  },
  "luminance": 0.1662
}

Semantic roles & 50–950 ramp

primary
#5E5FEC
secondary
#EBEBBB
accent
#DA0ADB
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5E5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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