#5147BE#5147BE

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

Color values

HEX#5147BE
RGBrgb(81, 71, 190)
HSLhsl(245, 48%, 51%)
HSVhsv(245, 63%, 75%)
CMYKcmyk(57.4%, 62.6%, 0%, 25.5%)
CIE-LABlab(37.79, 37.96, -61.39)
CIE-LCHlch(37.79, 72.18, 301.73°)
OKLaboklab(47.95% 0.0342 -0.1764)
OKLCHoklch(47.95% 0.18 281)
XYZxyz(14.9379, 9.9725, 49.8430)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147BE #B4BE47
analogous
#4778BE #5147BE #8C47BE
triadic
#5147BE #BE5147 #47BE51
tetradic
#5147BE #BE4778 #B4BE47 #47BE8C
square
#5147BE #BE4778 #B4BE47 #47BE8C
split-complementary
#5147BE #BE8C47 #78BE47
monochromatic
#2A2466 #3C3494 #5147BE #7C74CE #A7A1DE

Accessibility & contrast

On white

7.01
#5147BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5147BE
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147BE#FFFFFF#000000##FFFFFF
##5147BE1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#13647C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5147be;
/* rgb */ color: rgb(81, 71, 190);
/* oklch */ color: oklch(48.0% 0.180 281.0);
Tailwind
colors: {
  custom: {
    50: '#8c7bd2',
    500: '#5147be',
    950: '#000000',
  },
}
SCSS
$custom: #5147be;
$custom-light: #8c7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5147be",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 245.042,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.17973,
    "h": 281
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#5147BE
secondary
#C6CB96
accent
#D750CC
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5147BE

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

Preview Lab → · Contrast checker → · Palette generator →

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