#5147BC#5147BC

#5147BC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.8% C 0.177 H 281.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5147BC
RGBrgb(81, 71, 188)
HSLhsl(245, 47%, 51%)
HSVhsv(245, 62%, 74%)
CMYKcmyk(56.9%, 62.2%, 0%, 26.3%)
CIE-LABlab(37.64, 37.32, -60.47)
CIE-LCHlch(37.64, 71.06, 301.68°)
OKLaboklab(47.79% 0.0344 -0.1737)
OKLCHoklch(47.79% 0.177 281.2)
XYZxyz(14.7208, 9.8857, 48.6996)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147BC #B2BC47
analogous
#4777BC #5147BC #8B47BC
triadic
#5147BC #BC5147 #47BC51
tetradic
#5147BC #BC4777 #B2BC47 #47BC8B
square
#5147BC #BC4777 #B2BC47 #47BC8B
split-complementary
#5147BC #BC8B47 #77BC47
monochromatic
#2A2464 #3D3591 #5147BC #7B74CC #A6A1DD

Accessibility & contrast

On white

7.05
#5147BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5147BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5147BC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147BC#FFFFFF#000000##FFFFFF
##5147BC1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#17647B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5147bc;
/* rgb */ color: rgb(81, 71, 188);
/* oklch */ color: oklch(47.8% 0.177 281.2);
Tailwind
colors: {
  custom: {
    50: '#8c7bd1',
    500: '#5147bc',
    950: '#000000',
  },
}
SCSS
$custom: #5147bc;
$custom-light: #8c7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5147bc",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 245.128,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47789,
    "c": 0.17711,
    "h": 281.2
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#5147BC
secondary
#C5C995
accent
#D652CB
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5147BC

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

Preview Lab → · Contrast checker → · Palette generator →

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