#5147BF#5147BF

#5147BF is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.0% C 0.181 H 280.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5147BF
RGBrgb(81, 71, 191)
HSLhsl(245, 48%, 51%)
HSVhsv(245, 63%, 75%)
CMYKcmyk(57.6%, 62.8%, 0%, 25.1%)
CIE-LABlab(37.87, 38.28, -61.85)
CIE-LCHlch(37.87, 72.74, 301.75°)
OKLaboklab(48.04% 0.0342 -0.1778)
OKLCHoklch(48.04% 0.181 280.9)
XYZxyz(15.0476, 10.0164, 50.4205)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147BF #B5BF47
analogous
#4779BF #5147BF #8D47BF
triadic
#5147BF #BF5147 #47BF51
tetradic
#5147BF #BF4779 #B5BF47 #47BF8D
square
#5147BF #BF4779 #B5BF47 #47BF8D
split-complementary
#5147BF #BF8D47 #79BF47
monochromatic
#2A2468 #3C3495 #5147BF #7C74CF #A7A2DF

Accessibility & contrast

On white

6.99
#5147BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5147BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147BF
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147BF#FFFFFF#000000##FFFFFF
##5147BF1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#10657C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5147bf;
/* rgb */ color: rgb(81, 71, 191);
/* oklch */ color: oklch(48.0% 0.181 280.9);
Tailwind
colors: {
  custom: {
    50: '#8c7bd3',
    500: '#5147bf',
    950: '#000000',
  },
}
SCSS
$custom: #5147bf;
$custom-light: #8c7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5147bf",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 245,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48035,
    "c": 0.18103,
    "h": 280.9
  },
  "luminance": 0.10017
}

Semantic roles & 50–950 ramp

primary
#5147BF
secondary
#C7CB96
accent
#D850CD
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5147BF

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

Preview Lab → · Contrast checker → · Palette generator →

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