#5151BE#5151BE

#5151BE is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.167 H 278.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5151BE
RGBrgb(81, 81, 190)
HSLhsl(240, 46%, 53%)
HSVhsv(240, 57%, 75%)
CMYKcmyk(57.4%, 57.4%, 0%, 25.5%)
CIE-LABlab(40.17, 31.82, -57.54)
CIE-LCHlch(40.17, 65.75, 298.95°)
OKLaboklab(49.7% 0.0245 -0.165)
OKLCHoklch(49.7% 0.167 278.4)
XYZxyz(15.6271, 11.3508, 50.0727)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151BE #BEBE51
analogous
#5187BE #5151BE #8751BE
triadic
#5151BE #BE5151 #51BE51
tetradic
#5151BE #BE5187 #BEBE51 #51BE87
square
#5151BE #BE5187 #BEBE51 #51BE87
split-complementary
#5151BE #BE8751 #87BE51
monochromatic
#28286C #393999 #5151BE #7E7ECF #AAAADF

Accessibility & contrast

On white

6.42
#5151BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5151BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151BE
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151BE#FFFFFF#000000##FFFFFF
##5151BE1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#0F6B7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5151be;
/* rgb */ color: rgb(81, 81, 190);
/* oklch */ color: oklch(49.7% 0.167 278.4);
Tailwind
colors: {
  custom: {
    50: '#8c82d2',
    500: '#5151be',
    950: '#000000',
  },
}
SCSS
$custom: #5151be;
$custom-light: #8c82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5151be",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 240,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.16686,
    "h": 278.4
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#5151BE
secondary
#CDCD9E
accent
#D553D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5151BE

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

Preview Lab → · Contrast checker → · Palette generator →

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