#5147DB#5147DB

#5147DB is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.4% C 0.216 H 278.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5147DB
RGBrgb(81, 71, 219)
HSLhsl(244, 67%, 57%)
HSVhsv(244, 68%, 86%)
CMYKcmyk(63%, 67.6%, 0%, 14.1%)
CIE-LABlab(40.19, 47.17, -74.26)
CIE-LCHlch(40.19, 87.97, 302.43°)
OKLaboklab(50.44% 0.0312 -0.2142)
OKLCHoklch(50.44% 0.216 278.3)
XYZxyz(18.4286, 11.3688, 68.2274)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147DB #D1DB47
analogous
#4787DB #5147DB #9B47DB
triadic
#5147DB #DB5147 #47DB51
tetradic
#5147DB #DB4787 #D1DB47 #47DB9B
square
#5147DB #DB4787 #D1DB47 #47DB9B
split-complementary
#5147DB #DB9B47 #87DB47
monochromatic
#231B8C #3025BF #5147DB #817AE5 #B2ADEF

Accessibility & contrast

On white

6.41
#5147DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5147DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147DB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147DB#FFFFFF#000000##FFFFFF
##5147DB1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#0059D8
Tritanopia (blue-blind)
#006E8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5147db;
/* rgb */ color: rgb(81, 71, 219);
/* oklch */ color: oklch(50.4% 0.216 278.3);
Tailwind
colors: {
  custom: {
    50: '#917be7',
    500: '#5147db',
    950: '#000000',
  },
}
SCSS
$custom: #5147db;
$custom-light: #917be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5147db",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 244.054,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50438,
    "c": 0.21643,
    "h": 278.3
  },
  "luminance": 0.1137
}

Semantic roles & 50–950 ramp

primary
#5147DB
secondary
#D9DDA1
accent
#EA3EDF
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147DB

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

Preview Lab → · Contrast checker → · Palette generator →

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