#5147DD#5147DD

#5147DD is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.6% C 0.219 H 278.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5147DD
RGBrgb(81, 71, 221)
HSLhsl(244, 69%, 57%)
HSVhsv(244, 68%, 87%)
CMYKcmyk(63.3%, 67.9%, 0%, 13.3%)
CIE-LABlab(40.37, 47.80, -75.12)
CIE-LCHlch(40.37, 89.04, 302.47°)
OKLaboklab(50.62% 0.0309 -0.2167)
OKLCHoklch(50.62% 0.219 278.1)
XYZxyz(18.6935, 11.4748, 69.6223)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147DD #D3DD47
analogous
#4788DD #5147DD #9C47DD
triadic
#5147DD #DD5147 #47DD51
tetradic
#5147DD #DD4788 #D3DD47 #47DD9C
square
#5147DD #DD4788 #D3DD47 #47DD9C
split-complementary
#5147DD #DD9C47 #88DD47
monochromatic
#221A8F #2F24C3 #5147DD #827BE7 #B3AEF0

Accessibility & contrast

On white

6.37
#5147DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5147DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147DD
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147DD#FFFFFF#000000##FFFFFF
##5147DD1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E2
Deuteranopia (green-blind)
#0059DA
Tritanopia (blue-blind)
#006F8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5147dd;
/* rgb */ color: rgb(81, 71, 221);
/* oklch */ color: oklch(50.6% 0.219 278.1);
Tailwind
colors: {
  custom: {
    50: '#927be9',
    500: '#5147dd',
    950: '#000000',
  },
}
SCSS
$custom: #5147dd;
$custom-light: #927be9;
$custom-dark: #000000;
JSON
{
  "hex": "#5147dd",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 221
  },
  "hsl": {
    "h": 244,
    "s": 68.807,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50616,
    "c": 0.21889,
    "h": 278.1
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#5147DD
secondary
#DADEA2
accent
#EC3CE0
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147DD

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

Preview Lab → · Contrast checker → · Palette generator →

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