#5147AC#5147AC

#5147AC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.5% C 0.156 H 283.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5147AC
RGBrgb(81, 71, 172)
HSLhsl(246, 42%, 48%)
HSVhsv(246, 59%, 67%)
CMYKcmyk(52.9%, 58.7%, 0%, 32.5%)
CIE-LABlab(36.43, 32.22, -52.98)
CIE-LCHlch(36.43, 62.01, 301.31°)
OKLaboklab(46.52% 0.035 -0.1517)
OKLCHoklch(46.52% 0.156 283)
XYZxyz(13.0907, 9.2336, 40.1142)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147AC #A2AC47
analogous
#476FAC #5147AC #8447AC
triadic
#5147AC #AC5147 #47AC51
tetradic
#5147AC #AC476F #A2AC47 #47AC84
square
#5147AC #AC476F #A2AC47 #47AC84
split-complementary
#5147AC #AC8447 #6FAC47
monochromatic
#282355 #3D3581 #5147AC #766DC3 #9F99D5

Accessibility & contrast

On white

7.38
#5147AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5147AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5147AC
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147AC#FFFFFF#000000##FFFFFF
##5147AC1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#2C5E72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5147ac;
/* rgb */ color: rgb(81, 71, 172);
/* oklch */ color: oklch(46.5% 0.156 283.0);
Tailwind
colors: {
  custom: {
    50: '#897ac5',
    500: '#5147ac',
    950: '#000000',
  },
}
SCSS
$custom: #5147ac;
$custom-light: #897ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5147ac",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 245.941,
    "s": 41.564,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46523,
    "c": 0.15569,
    "h": 283
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#5147AC
secondary
#BCC18E
accent
#D156C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5147AC

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

Preview Lab → · Contrast checker → · Palette generator →

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