#5151CA#5151CA

#5151CA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.183 H 277.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5151CA
RGBrgb(81, 81, 202)
HSLhsl(240, 53%, 55%)
HSVhsv(240, 60%, 79%)
CMYKcmyk(59.9%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.05, 35.76, -63.07)
CIE-LCHlch(41.05, 72.51, 299.55°)
OKLaboklab(50.64% 0.0243 -0.1813)
OKLCHoklch(50.64% 0.183 277.6)
XYZxyz(16.9930, 11.8972, 57.2666)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151CA #CACA51
analogous
#518DCA #5151CA #8D51CA
triadic
#5151CA #CA5151 #51CA51
tetradic
#5151CA #CA518D #CACA51 #51CA8D
square
#5151CA #CA518D #CACA51 #51CA8D
split-complementary
#5151CA #CA8D51 #8DCA51
monochromatic
#25257B #3434AA #5151CA #8080D8 #AFAFE7

Accessibility & contrast

On white

6.21
#5151CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5151CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151CA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151CA#FFFFFF#000000##FFFFFF
##5151CA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#006E86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5151ca;
/* rgb */ color: rgb(81, 81, 202);
/* oklch */ color: oklch(50.6% 0.183 277.6);
Tailwind
colors: {
  custom: {
    50: '#8e82db',
    500: '#5151ca',
    950: '#000000',
  },
}
SCSS
$custom: #5151ca;
$custom-light: #8e82db;
$custom-dark: #000000;
JSON
{
  "hex": "#5151ca",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.18295,
    "h": 277.6
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#5151CA
secondary
#D5D5A2
accent
#DD4BDD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5151CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5151CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva