#5E5ECA#5E5ECA

#5E5ECA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.9% C 0.163 H 279.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5E5ECA
RGBrgb(94, 94, 202)
HSLhsl(240, 50%, 58%)
HSVhsv(240, 53%, 79%)
CMYKcmyk(53.5%, 53.5%, 0%, 20.8%)
CIE-LABlab(45.15, 30.19, -56.40)
CIE-LCHlch(45.15, 63.97, 298.16°)
OKLaboklab(53.92% 0.0267 -0.1612)
OKLCHoklch(53.92% 0.163 279.4)
XYZxyz(19.2761, 14.6482, 57.6773)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5ECA #CACA5E
analogous
#5E94CA #5E5ECA #945ECA
triadic
#5E5ECA #CA5E5E #5ECA5E
tetradic
#5E5ECA #CA5E94 #CACA5E #5ECA94
square
#5E5ECA #CA5E94 #CACA5E #5ECA94
split-complementary
#5E5ECA #CA945E #94CA5E
monochromatic
#2B2B83 #3A3AB1 #5E5ECA #8C8CD9 #BABAE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E5ECA#FFFFFF#000000##FFFFFF
##5E5ECA1.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)
#1F6FCE
Deuteranopia (green-blind)
#0967C8
Tritanopia (blue-blind)
#2D768B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5e5eca;
/* rgb */ color: rgb(94, 94, 202);
/* oklch */ color: oklch(53.9% 0.163 279.4);
Tailwind
colors: {
  custom: {
    50: '#948bdb',
    500: '#5e5eca',
    950: '#000000',
  },
}
SCSS
$custom: #5e5eca;
$custom-light: #948bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5eca",
  "rgb": {
    "r": 94,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53916,
    "c": 0.16343,
    "h": 279.4
  },
  "luminance": 0.14649
}

Semantic roles & 50–950 ramp

primary
#5E5ECA
secondary
#D7D7AC
accent
#DA4EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5E5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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