#5142BC#5142BC

#5142BC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.0% C 0.183 H 282.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5142BC
RGBrgb(81, 66, 188)
HSLhsl(247, 48%, 50%)
HSVhsv(247, 65%, 74%)
CMYKcmyk(56.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(36.51, 40.31, -62.31)
CIE-LCHlch(36.51, 74.21, 302.90°)
OKLaboklab(46.97% 0.039 -0.1791)
OKLCHoklch(46.97% 0.183 282.3)
XYZxyz(14.4158, 9.2757, 48.5980)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142BC #ADBC42
analogous
#4270BC #5142BC #8E42BC
triadic
#5142BC #BC5142 #42BC51
tetradic
#5142BC #BC4270 #ADBC42 #42BC8E
square
#5142BC #BC4270 #ADBC42 #42BC8E
split-complementary
#5142BC #BC8E42 #70BC42
monochromatic
#2A2261 #3D328F #5142BC #7A6FCC #A49CDC

Accessibility & contrast

On white

7.35
#5142BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5142BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142BC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142BC#FFFFFF#000000##FFFFFF
##5142BC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#186179
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5142bc;
/* rgb */ color: rgb(81, 66, 188);
/* oklch */ color: oklch(47.0% 0.183 282.3);
Tailwind
colors: {
  custom: {
    50: '#8c77d1',
    500: '#5142bc',
    950: '#000000',
  },
}
SCSS
$custom: #5142bc;
$custom-light: #8c77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5142bc",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 247.377,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46968,
    "c": 0.18335,
    "h": 282.3
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#5142BC
secondary
#C2C991
accent
#D850C7
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5142BC

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

Preview Lab → · Contrast checker → · Palette generator →

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