#5142AE#5142AE

#5142AE is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.8% C 0.165 H 284.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5142AE
RGBrgb(81, 66, 174)
HSLhsl(248, 45%, 47%)
HSVhsv(248, 62%, 68%)
CMYKcmyk(53.4%, 62.1%, 0%, 31.8%)
CIE-LABlab(35.40, 35.92, -55.84)
CIE-LCHlch(35.40, 66.39, 302.75°)
OKLaboklab(45.82% 0.0402 -0.1601)
OKLCHoklch(45.82% 0.165 284.1)
XYZxyz(12.9792, 8.7010, 41.0317)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142AE #9FAE42
analogous
#4269AE #5142AE #8742AE
triadic
#5142AE #AE5142 #42AE51
tetradic
#5142AE #AE4269 #9FAE42 #42AE87
square
#5142AE #AE4269 #9FAE42 #42AE87
split-complementary
#5142AE #AE8742 #69AE42
monochromatic
#282055 #3C3182 #5142AE #7568C6 #9D94D6

Accessibility & contrast

On white

7.66
#5142AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5142AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142AE
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142AE#FFFFFF#000000##FFFFFF
##5142AE1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#2A5C71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5142ae;
/* rgb */ color: rgb(81, 66, 174);
/* oklch */ color: oklch(45.8% 0.165 284.1);
Tailwind
colors: {
  custom: {
    50: '#8a77c7',
    500: '#5142ae',
    950: '#000000',
  },
}
SCSS
$custom: #5142ae;
$custom-light: #8a77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5142ae",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 248.333,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.16511,
    "h": 284.1
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

primary
#5142AE
secondary
#BAC28A
accent
#D553C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5142AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5142AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva