#5151BA#5151BA

#5151BA is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.161 H 278.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5151BA
RGBrgb(81, 81, 186)
HSLhsl(240, 43%, 52%)
HSVhsv(240, 56%, 73%)
CMYKcmyk(56.5%, 56.5%, 0%, 27.1%)
CIE-LABlab(39.88, 30.51, -55.66)
CIE-LCHlch(39.88, 63.48, 298.73°)
OKLaboklab(49.4% 0.0245 -0.1595)
OKLCHoklch(49.4% 0.161 278.7)
XYZxyz(15.1959, 11.1783, 47.8017)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151BA #BABA51
analogous
#5186BA #5151BA #8651BA
triadic
#5151BA #BA5151 #51BA51
tetradic
#5151BA #BA5186 #BABA51 #51BA86
square
#5151BA #BA5186 #BABA51 #51BA86
split-complementary
#5151BA #BA8651 #86BA51
monochromatic
#292968 #3A3A93 #5151BA #7D7DCB #A9A9DD

Accessibility & contrast

On white

6.49
#5151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151BA
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151BA#FFFFFF#000000##FFFFFF
##5151BA1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#18697D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5151ba;
/* rgb */ color: rgb(81, 81, 186);
/* oklch */ color: oklch(49.4% 0.161 278.7);
Tailwind
colors: {
  custom: {
    50: '#8b82cf',
    500: '#5151ba',
    950: '#000000',
  },
}
SCSS
$custom: #5151ba;
$custom-light: #8b82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5151ba",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49396,
    "c": 0.16139,
    "h": 278.7
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#5151BA
secondary
#CACA9D
accent
#D355D3
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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