#5B51CA#5B51CA

#5B51CA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.181 H 281.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5B51CA
RGBrgb(91, 81, 202)
HSLhsl(245, 53%, 55%)
HSVhsv(245, 60%, 79%)
CMYKcmyk(55%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.80, 37.53, -61.82)
CIE-LCHlch(41.80, 72.32, 301.26°)
OKLaboklab(51.38% 0.0366 -0.1774)
OKLCHoklch(51.38% 0.181 281.7)
XYZxyz(17.9142, 12.3722, 57.3098)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51CA #C0CA51
analogous
#5183CA #5B51CA #9851CA
triadic
#5B51CA #CA5B51 #51CA5B
tetradic
#5B51CA #CA5183 #C0CA51 #51CA98
square
#5B51CA #CA5183 #C0CA51 #51CA98
split-complementary
#5B51CA #CA9851 #83CA51
monochromatic
#2D257B #3E34AA #5B51CA #8780D8 #B3AFE7

Accessibility & contrast

On white

6.04
#5B51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5B51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51CA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51CA#FFFFFF#000000##FFFFFF
##5B51CA1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#266E86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b51ca;
/* rgb */ color: rgb(91, 81, 202);
/* oklch */ color: oklch(51.4% 0.181 281.7);
Tailwind
colors: {
  custom: {
    50: '#9382db',
    500: '#5b51ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b51ca;
$custom-light: #9382db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51ca",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 244.959,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51377,
    "c": 0.18109,
    "h": 281.7
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#5B51CA
secondary
#D0D5A2
accent
#DD4BD1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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