#5A40E1#5A40E1

#5A40E1 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.7% C 0.229 H 281.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5A40E1
RGBrgb(90, 64, 225)
HSLhsl(250, 73%, 57%)
HSVhsv(250, 72%, 88%)
CMYKcmyk(60%, 71.6%, 0%, 11.8%)
CIE-LABlab(40.04, 54.03, -77.91)
CIE-LCHlch(40.04, 94.81, 304.74°)
OKLaboklab(50.67% 0.0469 -0.2246)
OKLCHoklch(50.67% 0.229 281.8)
XYZxyz(19.6362, 11.2753, 72.3612)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40E1 #C7E140
analogous
#4077E1 #5A40E1 #AA40E1
triadic
#5A40E1 #E15A40 #40E15A
tetradic
#5A40E1 #E14077 #C7E140 #40E1AA
square
#5A40E1 #E14077 #C7E140 #40E1AA
split-complementary
#5A40E1 #E1AA40 #77E140
monochromatic
#2A1790 #3A1FC5 #5A40E1 #8875E9 #B5AAF2

Accessibility & contrast

On white

6.45
#5A40E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5A40E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A40E1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A40E1#FFFFFF#000000##FFFFFF
##5A40E11.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#006C8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a40e1;
/* rgb */ color: rgb(90, 64, 225);
/* oklch */ color: oklch(50.7% 0.229 281.8);
Tailwind
colors: {
  custom: {
    50: '#9778ec',
    500: '#5a40e1',
    950: '#000000',
  },
}
SCSS
$custom: #5a40e1;
$custom-light: #9778ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40e1",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 249.689,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50666,
    "c": 0.22945,
    "h": 281.8
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#5A40E1
secondary
#D5DF9D
accent
#F038D2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A40E1

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

Preview Lab → · Contrast checker → · Palette generator →

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