#5142BF#5142BF

#5142BF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.2% C 0.187 H 281.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5142BF
RGBrgb(81, 66, 191)
HSLhsl(247, 49%, 50%)
HSVhsv(247, 65%, 75%)
CMYKcmyk(57.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(36.76, 41.25, -63.67)
CIE-LCHlch(36.76, 75.87, 302.94°)
OKLaboklab(47.22% 0.0387 -0.1831)
OKLCHoklch(47.22% 0.187 281.9)
XYZxyz(14.7426, 9.4064, 50.3189)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142BF #B0BF42
analogous
#4271BF #5142BF #8F42BF
triadic
#5142BF #BF5142 #42BF51
tetradic
#5142BF #BF4271 #B0BF42 #42BF8F
square
#5142BF #BF4271 #B0BF42 #42BF8F
split-complementary
#5142BF #BF8F42 #71BF42
monochromatic
#2A2265 #3D3292 #5142BF #7B70CE #A59DDE

Accessibility & contrast

On white

7.29
#5142BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5142BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142BF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142BF#FFFFFF#000000##FFFFFF
##5142BF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#12627B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5142bf;
/* rgb */ color: rgb(81, 66, 191);
/* oklch */ color: oklch(47.2% 0.187 281.9);
Tailwind
colors: {
  custom: {
    50: '#8d77d3',
    500: '#5142bf',
    950: '#000000',
  },
}
SCSS
$custom: #5142bf;
$custom-light: #8d77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5142bf",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 247.2,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47222,
    "c": 0.1872,
    "h": 281.9
  },
  "luminance": 0.09407
}

Semantic roles & 50–950 ramp

primary
#5142BF
secondary
#C4CA93
accent
#D94FC8
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5142BF

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

Preview Lab → · Contrast checker → · Palette generator →

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