#5B40E3#5B40E3

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

Color values

HEX#5B40E3
RGBrgb(91, 64, 227)
HSLhsl(250, 74%, 57%)
HSVhsv(250, 72%, 89%)
CMYKcmyk(59.9%, 71.8%, 0%, 11%)
CIE-LABlab(40.30, 54.75, -78.61)
CIE-LCHlch(40.30, 95.80, 304.85°)
OKLaboklab(50.93% 0.0478 -0.2266)
OKLCHoklch(50.93% 0.232 281.9)
XYZxyz(20.0086, 11.4356, 73.8111)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B40E3 #C8E340
analogous
#4076E3 #5B40E3 #AD40E3
triadic
#5B40E3 #E35B40 #40E35B
tetradic
#5B40E3 #E34076 #C8E340 #40E3AD
square
#5B40E3 #E34076 #C8E340 #40E3AD
split-complementary
#5B40E3 #E3AD40 #76E340
monochromatic
#2A1693 #3A1DC8 #5B40E3 #8975EB #B7ABF3

Accessibility & contrast

On white

6.39
#5B40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5B40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B40E3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B40E3#FFFFFF#000000##FFFFFF
##5B40E31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.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: #5b40e3;
/* rgb */ color: rgb(91, 64, 227);
/* oklch */ color: oklch(50.9% 0.232 281.9);
Tailwind
colors: {
  custom: {
    50: '#9878ed',
    500: '#5b40e3',
    950: '#000000',
  },
}
SCSS
$custom: #5b40e3;
$custom-light: #9878ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b40e3",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 249.939,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50929,
    "c": 0.23163,
    "h": 281.9
  },
  "luminance": 0.11437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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