#5B51DB#5B51DB

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

Color values

HEX#5B51DB
RGBrgb(91, 81, 219)
HSLhsl(244, 66%, 59%)
HSVhsv(244, 63%, 86%)
CMYKcmyk(58.4%, 63%, 0%, 14.1%)
CIE-LABlab(43.10, 42.86, -69.48)
CIE-LCHlch(43.10, 81.64, 301.67°)
OKLaboklab(52.73% 0.0356 -0.1999)
OKLCHoklch(52.73% 0.203 280.1)
XYZxyz(20.0390, 13.2221, 68.5002)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51DB #D1DB51
analogous
#518CDB #5B51DB #A051DB
triadic
#5B51DB #DB5B51 #51DB5B
tetradic
#5B51DB #DB518C #D1DB51 #51DBA0
square
#5B51DB #DB518C #D1DB51 #51DBA0
split-complementary
#5B51DB #DBA051 #8CDB51
monochromatic
#271E93 #3429C6 #5B51DB #8B84E5 #BBB6F0

Accessibility & contrast

On white

5.76
#5B51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5B51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51DB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51DB#FFFFFF#000000##FFFFFF
##5B51DB1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b51db;
/* rgb */ color: rgb(91, 81, 219);
/* oklch */ color: oklch(52.7% 0.203 280.1);
Tailwind
colors: {
  custom: {
    50: '#9682e7',
    500: '#5b51db',
    950: '#000000',
  },
}
SCSS
$custom: #5b51db;
$custom-light: #9682e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51db",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 244.348,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5273,
    "c": 0.20302,
    "h": 280.1
  },
  "luminance": 0.13223
}

Semantic roles & 50–950 ramp

primary
#5B51DB
secondary
#DBDFA9
accent
#E93FDC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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