#5151E0#5151E0

#5151E0 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.4% C 0.211 H 276.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5151E0
RGBrgb(81, 81, 224)
HSLhsl(240, 70%, 60%)
HSVhsv(240, 64%, 88%)
CMYKcmyk(63.8%, 63.8%, 0%, 12.2%)
CIE-LABlab(42.78, 42.95, -72.87)
CIE-LCHlch(42.78, 84.58, 300.51°)
OKLaboklab(52.45% 0.0231 -0.2101)
OKLCHoklch(52.45% 0.211 276.3)
XYZxyz(19.7859, 13.0144, 71.9759)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151E0 #E0E051
analogous
#5199E0 #5151E0 #9951E0
triadic
#5151E0 #E05151 #51E051
tetradic
#5151E0 #E05199 #E0E051 #51E099
square
#5151E0 #E05199 #E0E051 #51E099
split-complementary
#5151E0 #E09951 #99E051
monochromatic
#1C1C9B #2525CF #5151E0 #8585E9 #B9B9F3

Accessibility & contrast

On white

5.83
#5151E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5151E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151E0
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151E0#FFFFFF#000000##FFFFFF
##5151E01.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE5
Deuteranopia (green-blind)
#005FDD
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5151e0;
/* rgb */ color: rgb(81, 81, 224);
/* oklch */ color: oklch(52.4% 0.211 276.3);
Tailwind
colors: {
  custom: {
    50: '#9182eb',
    500: '#5151e0',
    950: '#000000',
  },
}
SCSS
$custom: #5151e0;
$custom-light: #9182eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5151e0",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 224
  },
  "hsl": {
    "h": 240,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52445,
    "c": 0.21135,
    "h": 276.3
  },
  "luminance": 0.13016
}

Semantic roles & 50–950 ramp

primary
#5151E0
secondary
#E2E2AB
accent
#ED3BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151E0

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

Preview Lab → · Contrast checker → · Palette generator →

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