#5151FF#5151FF

#5151FF is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.2% C 0.249 H 274.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5151FF
RGBrgb(81, 81, 255)
HSLhsl(240, 100%, 66%)
HSVhsv(240, 68%, 100%)
CMYKcmyk(68.2%, 68.2%, 0%, 0%)
CIE-LABlab(45.43, 52.90, -85.98)
CIE-LCHlch(45.43, 100.95, 301.60°)
OKLaboklab(55.17% 0.0197 -0.2485)
OKLCHoklch(55.17% 0.249 274.5)
XYZxyz(24.3798, 14.8519, 96.1702)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151FF #FFFF51
analogous
#51A8FF #5151FF #A851FF
triadic
#5151FF #FF5151 #51FF51
tetradic
#5151FF #FF51A8 #FFFF51 #51FFA8
square
#5151FF #FF51A8 #FFFF51 #51FFA8
split-complementary
#5151FF #FFA851 #A8FF51
monochromatic
#0000D6 #1414FF #5151FF #8E8EFF #CBCBFF

Accessibility & contrast

On white

5.29
#5151FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5151FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151FF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151FF#FFFFFF#000000##FFFFFF
##5151FF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0063FC
Tritanopia (blue-blind)
#0081A2
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5151ff;
/* rgb */ color: rgb(81, 81, 255);
/* oklch */ color: oklch(55.2% 0.249 274.5);
Tailwind
colors: {
  custom: {
    50: '#9783ff',
    500: '#5151ff',
    950: '#000000',
  },
}
SCSS
$custom: #5151ff;
$custom-light: #9783ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5151ff",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 240,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.55172,
    "c": 0.24925,
    "h": 274.5
  },
  "luminance": 0.14854
}

Semantic roles & 50–950 ramp

primary
#5151FF
secondary
#F3F3B9
accent
#E600E5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5151FF

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

Preview Lab → · Contrast checker → · Palette generator →

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