#5940DF#5940DF

#5940DF is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.227 H 281.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5940DF
RGBrgb(89, 64, 223)
HSLhsl(249, 71%, 56%)
HSVhsv(249, 71%, 87%)
CMYKcmyk(60.1%, 71.3%, 0%, 12.5%)
CIE-LABlab(39.78, 53.31, -77.21)
CIE-LCHlch(39.78, 93.82, 304.62°)
OKLaboklab(50.4% 0.046 -0.2226)
OKLCHoklch(50.4% 0.227 281.7)
XYZxyz(19.2683, 11.1170, 70.9282)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940DF #C6DF40
analogous
#4077DF #5940DF #A940DF
triadic
#5940DF #DF5940 #40DF59
tetradic
#5940DF #DF4077 #C6DF40 #40DFA9
square
#5940DF #DF4077 #C6DF40 #40DFA9
split-complementary
#5940DF #DFA940 #77DF40
monochromatic
#2A188D #3A20C1 #5940DF #8774E8 #B4A9F1

Accessibility & contrast

On white

6.51
#5940DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5940DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940DF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940DF#FFFFFF#000000##FFFFFF
##5940DF1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.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: #5940df;
/* rgb */ color: rgb(89, 64, 223);
/* oklch */ color: oklch(50.4% 0.227 281.7);
Tailwind
colors: {
  custom: {
    50: '#9678ea',
    500: '#5940df',
    950: '#000000',
  },
}
SCSS
$custom: #5940df;
$custom-light: #9678ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5940df",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 249.434,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50403,
    "c": 0.22726,
    "h": 281.7
  },
  "luminance": 0.11118
}

Semantic roles & 50–950 ramp

primary
#5940DF
secondary
#D4DE9D
accent
#EE3AD2
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5940DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5940DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva