#5942DB#5942DB

#5942DB is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.220 H 281.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5942DB
RGBrgb(89, 66, 219)
HSLhsl(249, 68%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(59.4%, 69.9%, 0%, 14.1%)
CIE-LABlab(39.80, 51.05, -74.87)
CIE-LCHlch(39.80, 90.62, 304.29°)
OKLaboklab(50.31% 0.0452 -0.2157)
OKLCHoklch(50.31% 0.22 281.8)
XYZxyz(18.8502, 11.1334, 68.1597)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942DB #C4DB42
analogous
#4277DB #5942DB #A642DB
triadic
#5942DB #DB5942 #42DB59
tetradic
#5942DB #DB4277 #C4DB42 #42DBA6
square
#5942DB #DB4277 #C4DB42 #42DBA6
split-complementary
#5942DB #DBA642 #77DB42
monochromatic
#2B1A89 #3B24BC #5942DB #8675E5 #B3A9EF

Accessibility & contrast

On white

6.51
#5942DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5942DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942DB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942DB#FFFFFF#000000##FFFFFF
##5942DB1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#0058D8
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5942db;
/* rgb */ color: rgb(89, 66, 219);
/* oklch */ color: oklch(50.3% 0.220 281.8);
Tailwind
colors: {
  custom: {
    50: '#9679e7',
    500: '#5942db',
    950: '#000000',
  },
}
SCSS
$custom: #5942db;
$custom-light: #9679e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5942db",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 249.02,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50314,
    "c": 0.22044,
    "h": 281.8
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#5942DB
secondary
#D3DC9D
accent
#EB3DD1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5942DB

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

Preview Lab → · Contrast checker → · Palette generator →

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