#5A40DF#5A40DF

#5A40DF is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.5% C 0.227 H 282.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5A40DF
RGBrgb(90, 64, 223)
HSLhsl(250, 71%, 56%)
HSVhsv(250, 71%, 87%)
CMYKcmyk(59.6%, 71.3%, 0%, 12.5%)
CIE-LABlab(39.86, 53.44, -77.07)
CIE-LCHlch(39.86, 93.78, 304.74°)
OKLaboklab(50.48% 0.0473 -0.2221)
OKLCHoklch(50.48% 0.227 282)
XYZxyz(19.3650, 11.1668, 70.9327)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40DF #C5DF40
analogous
#4076DF #5A40DF #A940DF
triadic
#5A40DF #DF5A40 #40DF5A
tetradic
#5A40DF #DF4076 #C5DF40 #40DFA9
square
#5A40DF #DF4076 #C5DF40 #40DFA9
split-complementary
#5A40DF #DFA940 #76DF40
monochromatic
#2B188D #3B20C1 #5A40DF #8774E8 #B5A9F1

Accessibility & contrast

On white

6.49
#5A40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A40DF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A40DF#FFFFFF#000000##FFFFFF
##5A40DF1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a40df;
/* rgb */ color: rgb(90, 64, 223);
/* oklch */ color: oklch(50.5% 0.227 282.0);
Tailwind
colors: {
  custom: {
    50: '#9778ea',
    500: '#5a40df',
    950: '#000000',
  },
}
SCSS
$custom: #5a40df;
$custom-light: #9778ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40df",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 249.811,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50483,
    "c": 0.22712,
    "h": 282
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#5A40DF
secondary
#D3DE9D
accent
#EE3AD1
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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