#5940D9#5940D9

#5940D9 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.9% C 0.220 H 282.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5940D9
RGBrgb(89, 64, 217)
HSLhsl(250, 67%, 55%)
HSVhsv(250, 71%, 85%)
CMYKcmyk(59%, 70.5%, 0%, 14.9%)
CIE-LABlab(39.24, 51.53, -74.65)
CIE-LCHlch(39.24, 90.71, 304.61°)
OKLaboklab(49.86% 0.0471 -0.2151)
OKLCHoklch(49.86% 0.22 282.4)
XYZxyz(18.4737, 10.7991, 66.7432)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940D9 #C0D940
analogous
#4073D9 #5940D9 #A640D9
triadic
#5940D9 #D95940 #40D959
tetradic
#5940D9 #D94073 #C0D940 #40D9A6
square
#5940D9 #D94073 #C0D940 #40D9A6
split-complementary
#5940D9 #D9A640 #73D940
monochromatic
#2C1A84 #3C24B7 #5940D9 #8573E3 #B2A6ED

Accessibility & contrast

On white

6.65
#5940D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5940D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940D9
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940D9#FFFFFF#000000##FFFFFF
##5940D91.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#006988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5940d9;
/* rgb */ color: rgb(89, 64, 217);
/* oklch */ color: oklch(49.9% 0.220 282.4);
Tailwind
colors: {
  custom: {
    50: '#9577e6',
    500: '#5940d9',
    950: '#000000',
  },
}
SCSS
$custom: #5940d9;
$custom-light: #9577e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5940d9",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 249.804,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49858,
    "c": 0.2202,
    "h": 282.4
  },
  "luminance": 0.108
}

Semantic roles & 50–950 ramp

primary
#5940D9
secondary
#D0DA9A
accent
#EA3ECE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5940D9

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

Preview Lab → · Contrast checker → · Palette generator →

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