#5151AF#5151AF

#5151AF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.146 H 279.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5151AF
RGBrgb(81, 81, 175)
HSLhsl(240, 37%, 50%)
HSVhsv(240, 54%, 69%)
CMYKcmyk(53.7%, 53.7%, 0%, 31.4%)
CIE-LABlab(39.12, 26.92, -50.41)
CIE-LCHlch(39.12, 57.15, 298.10°)
OKLaboklab(48.59% 0.0241 -0.1441)
OKLCHoklch(48.59% 0.146 279.5)
XYZxyz(14.0712, 10.7285, 41.8785)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151AF #AFAF51
analogous
#5180AF #5151AF #8051AF
triadic
#5151AF #AF5151 #51AF51
tetradic
#5151AF #AF5180 #AFAF51 #51AF80
square
#5151AF #AF5180 #AFAF51 #51AF80
split-complementary
#5151AF #AF8051 #80AF51
monochromatic
#2A2A5C #3D3D85 #5151AF #7B7BC2 #A5A5D6

Accessibility & contrast

On white

6.68
#5151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5151AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151AF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151AF#FFFFFF#000000##FFFFFF
##5151AF1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#0B58AD
Tritanopia (blue-blind)
#276678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5151af;
/* rgb */ color: rgb(81, 81, 175);
/* oklch */ color: oklch(48.6% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#8982c7',
    500: '#5151af',
    950: '#000000',
  },
}
SCSS
$custom: #5151af;
$custom-light: #8982c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5151af",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48588,
    "c": 0.14609,
    "h": 279.5
  },
  "luminance": 0.10729
}

Semantic roles & 50–950 ramp

primary
#5151AF
secondary
#C3C399
accent
#CD5BCD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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