#5A40E3#5A40E3

#5A40E3 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.232 H 281.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A40E3
RGBrgb(90, 64, 227)
HSLhsl(250, 74%, 57%)
HSVhsv(250, 72%, 89%)
CMYKcmyk(60.4%, 71.8%, 0%, 11%)
CIE-LABlab(40.22, 54.62, -78.75)
CIE-LCHlch(40.22, 95.84, 304.74°)
OKLaboklab(50.85% 0.0465 -0.2271)
OKLCHoklch(50.85% 0.232 281.6)
XYZxyz(19.9106, 11.3851, 73.8065)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40E3 #C9E340
analogous
#4077E3 #5A40E3 #AC40E3
triadic
#5A40E3 #E35A40 #40E35A
tetradic
#5A40E3 #E34077 #C9E340 #40E3AC
square
#5A40E3 #E34077 #C9E340 #40E3AC
split-complementary
#5A40E3 #E3AC40 #77E340
monochromatic
#2A1693 #391DC8 #5A40E3 #8875EB #B6ABF3

Accessibility & contrast

On white

6.41
#5A40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A40E3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A40E3#FFFFFF#000000##FFFFFF
##5A40E31.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#0059E0
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a40e3;
/* rgb */ color: rgb(90, 64, 227);
/* oklch */ color: oklch(50.8% 0.232 281.6);
Tailwind
colors: {
  custom: {
    50: '#9878ed',
    500: '#5a40e3',
    950: '#000000',
  },
}
SCSS
$custom: #5a40e3;
$custom-light: #9878ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40e3",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 249.571,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5085,
    "c": 0.23178,
    "h": 281.6
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#5A40E3
secondary
#D6E19E
accent
#F137D3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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