#5147DF#5147DF

#5147DF is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.8% C 0.221 H 277.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5147DF
RGBrgb(81, 71, 223)
HSLhsl(244, 70%, 58%)
HSVhsv(244, 68%, 87%)
CMYKcmyk(63.7%, 68.2%, 0%, 12.5%)
CIE-LABlab(40.54, 48.43, -75.97)
CIE-LCHlch(40.54, 90.10, 302.52°)
OKLaboklab(50.8% 0.0306 -0.2192)
OKLCHoklch(50.8% 0.221 277.9)
XYZxyz(18.9616, 11.5820, 71.0340)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147DF #D5DF47
analogous
#4789DF #5147DF #9D47DF
triadic
#5147DF #DF5147 #47DF51
tetradic
#5147DF #DF4789 #D5DF47 #47DF9D
square
#5147DF #DF4789 #D5DF47 #47DF9D
split-complementary
#5147DF #DF9D47 #89DF47
monochromatic
#211992 #2D22C6 #5147DF #827BE8 #B4AFF1

Accessibility & contrast

On white

6.33
#5147DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5147DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147DF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147DF#FFFFFF#000000##FFFFFF
##5147DF1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#0059DC
Tritanopia (blue-blind)
#00708D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5147df;
/* rgb */ color: rgb(81, 71, 223);
/* oklch */ color: oklch(50.8% 0.221 277.9);
Tailwind
colors: {
  custom: {
    50: '#927cea',
    500: '#5147df',
    950: '#000000',
  },
}
SCSS
$custom: #5147df;
$custom-light: #927cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5147df",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 243.947,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.50796,
    "c": 0.22132,
    "h": 277.9
  },
  "luminance": 0.11584
}

Semantic roles & 50–950 ramp

primary
#5147DF
secondary
#DBDFA2
accent
#ED3BE1
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147DF

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

Preview Lab → · Contrast checker → · Palette generator →

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