#5147BD#5147BD

#5147BD is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.9% C 0.178 H 281.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5147BD
RGBrgb(81, 71, 189)
HSLhsl(245, 47%, 51%)
HSVhsv(245, 62%, 74%)
CMYKcmyk(57.1%, 62.4%, 0%, 25.9%)
CIE-LABlab(37.71, 37.64, -60.93)
CIE-LCHlch(37.71, 71.62, 301.71°)
OKLaboklab(47.87% 0.0343 -0.1751)
OKLCHoklch(47.87% 0.178 281.1)
XYZxyz(14.8290, 9.9290, 49.2693)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147BD #B3BD47
analogous
#4778BD #5147BD #8C47BD
triadic
#5147BD #BD5147 #47BD51
tetradic
#5147BD #BD4778 #B3BD47 #47BD8C
square
#5147BD #BD4778 #B3BD47 #47BD8C
split-complementary
#5147BD #BD8C47 #78BD47
monochromatic
#2A2465 #3C3492 #5147BD #7C74CD #A6A1DD

Accessibility & contrast

On white

7.03
#5147BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5147BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5147BD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147BD#FFFFFF#000000##FFFFFF
##5147BD1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#15647B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5147bd;
/* rgb */ color: rgb(81, 71, 189);
/* oklch */ color: oklch(47.9% 0.178 281.1);
Tailwind
colors: {
  custom: {
    50: '#8c7bd2',
    500: '#5147bd',
    950: '#000000',
  },
}
SCSS
$custom: #5147bd;
$custom-light: #8c7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5147bd",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 245.085,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4787,
    "c": 0.17842,
    "h": 281.1
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#5147BD
secondary
#C6CA96
accent
#D751CB
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5147BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5147BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva