#5942DC#5942DC

#5942DC is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.4% C 0.222 H 281.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5942DC
RGBrgb(89, 66, 220)
HSLhsl(249, 69%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(59.5%, 70%, 0%, 13.7%)
CIE-LABlab(39.89, 51.35, -75.30)
CIE-LCHlch(39.89, 91.14, 304.29°)
OKLaboklab(50.4% 0.0451 -0.217)
OKLCHoklch(50.4% 0.222 281.7)
XYZxyz(18.9823, 11.1863, 68.8552)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942DC #C5DC42
analogous
#4278DC #5942DC #A642DC
triadic
#5942DC #DC5942 #42DC59
tetradic
#5942DC #DC4278 #C5DC42 #42DCA6
square
#5942DC #DC4278 #C5DC42 #42DCA6
split-complementary
#5942DC #DCA642 #78DC42
monochromatic
#2A1A8A #3A23BE #5942DC #8676E6 #B4A9EF

Accessibility & contrast

On white

6.49
#5942DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5942DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942DC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942DC#FFFFFF#000000##FFFFFF
##5942DC1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0058D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5942dc;
/* rgb */ color: rgb(89, 66, 220);
/* oklch */ color: oklch(50.4% 0.222 281.7);
Tailwind
colors: {
  custom: {
    50: '#9679e8',
    500: '#5942dc',
    950: '#000000',
  },
}
SCSS
$custom: #5942dc;
$custom-light: #9679e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5942dc",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 248.961,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50404,
    "c": 0.22164,
    "h": 281.7
  },
  "luminance": 0.11188
}

Semantic roles & 50–950 ramp

primary
#5942DC
secondary
#D3DD9D
accent
#EC3CD1
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5942DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5942DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva