#5147AF#5147AF

#5147AF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.8% C 0.160 H 282.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5147AF
RGBrgb(81, 71, 175)
HSLhsl(246, 42%, 48%)
HSVhsv(246, 59%, 69%)
CMYKcmyk(53.7%, 59.4%, 0%, 31.4%)
CIE-LABlab(36.65, 33.18, -54.41)
CIE-LCHlch(36.65, 63.72, 301.37°)
OKLaboklab(46.75% 0.035 -0.1559)
OKLCHoklch(46.75% 0.16 282.6)
XYZxyz(13.3821, 9.3502, 41.6487)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147AF #A5AF47
analogous
#4771AF #5147AF #8547AF
triadic
#5147AF #AF5147 #47AF51
tetradic
#5147AF #AF4771 #A5AF47 #47AF85
square
#5147AF #AF4771 #A5AF47 #47AF85
split-complementary
#5147AF #AF8547 #71AF47
monochromatic
#292458 #3D3583 #5147AF #776FC4 #A09AD6

Accessibility & contrast

On white

7.32
#5147AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5147AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5147AF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147AF#FFFFFF#000000##FFFFFF
##5147AF1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#295F74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5147af;
/* rgb */ color: rgb(81, 71, 175);
/* oklch */ color: oklch(46.8% 0.160 282.6);
Tailwind
colors: {
  custom: {
    50: '#8a7ac8',
    500: '#5147af',
    950: '#000000',
  },
}
SCSS
$custom: #5147af;
$custom-light: #8a7ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5147af",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 245.769,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46754,
    "c": 0.15977,
    "h": 282.6
  },
  "luminance": 0.09351
}

Semantic roles & 50–950 ramp

primary
#5147AF
secondary
#BDC28F
accent
#D256C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5147AF

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

Preview Lab → · Contrast checker → · Palette generator →

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