#5142B9#5142B9

#5142B9 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.179 H 282.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5142B9
RGBrgb(81, 66, 185)
HSLhsl(248, 47%, 49%)
HSVhsv(248, 64%, 73%)
CMYKcmyk(56.2%, 64.3%, 0%, 27.5%)
CIE-LABlab(36.27, 39.37, -60.94)
CIE-LCHlch(36.27, 72.55, 302.86°)
OKLaboklab(46.72% 0.0393 -0.1751)
OKLCHoklch(46.72% 0.179 282.7)
XYZxyz(14.0958, 9.1477, 46.9124)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142B9 #AAB942
analogous
#426FB9 #5142B9 #8D42B9
triadic
#5142B9 #B95142 #42B951
tetradic
#5142B9 #B9426F #AAB942 #42B98D
square
#5142B9 #B9426F #AAB942 #42B98D
split-complementary
#5142B9 #B98D42 #6FB942
monochromatic
#2A225F #3D328C #5142B9 #796DCB #A29ADB

Accessibility & contrast

On white

7.42
#5142B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5142B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142B9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142B9#FFFFFF#000000##FFFFFF
##5142B91.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#1D6077
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5142b9;
/* rgb */ color: rgb(81, 66, 185);
/* oklch */ color: oklch(46.7% 0.179 282.7);
Tailwind
colors: {
  custom: {
    50: '#8c77cf',
    500: '#5142b9',
    950: '#000000',
  },
}
SCSS
$custom: #5142b9;
$custom-light: #8c77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5142b9",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 247.563,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.17949,
    "h": 282.7
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#5142B9
secondary
#C0C790
accent
#D751C6
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5142B9

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

Preview Lab → · Contrast checker → · Palette generator →

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