#5151B2#5151B2

#5151B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.150 H 279.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5151B2
RGBrgb(81, 81, 178)
HSLhsl(240, 39%, 51%)
HSVhsv(240, 54%, 70%)
CMYKcmyk(54.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(39.32, 27.90, -51.86)
CIE-LCHlch(39.32, 58.89, 298.28°)
OKLaboklab(48.81% 0.0242 -0.1483)
OKLCHoklch(48.81% 0.15 279.3)
XYZxyz(14.3691, 10.8476, 43.4475)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151B2 #B2B251
analogous
#5181B2 #5151B2 #8151B2
triadic
#5151B2 #B25151 #51B251
tetradic
#5151B2 #B25181 #B2B251 #51B281
square
#5151B2 #B25181 #B2B251 #51B281
split-complementary
#5151B2 #B28151 #81B251
monochromatic
#2A2A5F #3D3D89 #5151B2 #7B7BC5 #A6A6D8

Accessibility & contrast

On white

6.63
#5151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151B2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151B2#FFFFFF#000000##FFFFFF
##5151B21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#246779
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5151b2;
/* rgb */ color: rgb(81, 81, 178);
/* oklch */ color: oklch(48.8% 0.150 279.3);
Tailwind
colors: {
  custom: {
    50: '#8a82ca',
    500: '#5151b2',
    950: '#000000',
  },
}
SCSS
$custom: #5151b2;
$custom-light: #8a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5151b2",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.1503,
    "h": 279.3
  },
  "luminance": 0.10849
}

Semantic roles & 50–950 ramp

primary
#5151B2
secondary
#C5C59A
accent
#CF59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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