#5A51DB#5A51DB

#5A51DB is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.203 H 279.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A51DB
RGBrgb(90, 81, 219)
HSLhsl(244, 66%, 59%)
HSVhsv(244, 63%, 86%)
CMYKcmyk(58.9%, 63%, 0%, 14.1%)
CIE-LABlab(43.02, 42.70, -69.61)
CIE-LCHlch(43.02, 81.66, 301.53°)
OKLaboklab(52.66% 0.0343 -0.2003)
OKLCHoklch(52.66% 0.203 279.7)
XYZxyz(19.9410, 13.1716, 68.4957)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51DB #D2DB51
analogous
#518DDB #5A51DB #9F51DB
triadic
#5A51DB #DB5A51 #51DB5A
tetradic
#5A51DB #DB518D #D2DB51 #51DB9F
square
#5A51DB #DB518D #D2DB51 #51DB9F
split-complementary
#5A51DB #DB9F51 #8DDB51
monochromatic
#261E93 #3329C6 #5A51DB #8A84E5 #BAB6F0

Accessibility & contrast

On white

5.78
#5A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51DB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51DB#FFFFFF#000000##FFFFFF
##5A51DB1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a51db;
/* rgb */ color: rgb(90, 81, 219);
/* oklch */ color: oklch(52.7% 0.203 279.7);
Tailwind
colors: {
  custom: {
    50: '#9582e7',
    500: '#5a51db',
    950: '#000000',
  },
}
SCSS
$custom: #5a51db;
$custom-light: #9582e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51db",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 243.913,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.2032,
    "h": 279.7
  },
  "luminance": 0.13173
}

Semantic roles & 50–950 ramp

primary
#5A51DB
secondary
#DCDFA9
accent
#E93FDE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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