#5143D8#5143D8

#5143D8 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.217 H 279.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5143D8
RGBrgb(81, 67, 216)
HSLhsl(246, 66%, 55%)
HSVhsv(246, 69%, 85%)
CMYKcmyk(62.5%, 69%, 0%, 15.3%)
CIE-LABlab(39.10, 48.50, -74.32)
CIE-LCHlch(39.10, 88.75, 303.12°)
OKLaboklab(49.57% 0.0345 -0.2144)
OKLCHoklch(49.57% 0.217 279.1)
XYZxyz(17.7912, 10.7201, 66.0841)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5143D8 #CAD843
analogous
#437FD8 #5143D8 #9C43D8
triadic
#5143D8 #D85143 #43D851
tetradic
#5143D8 #D8437F #CAD843 #43D89C
square
#5143D8 #D8437F #CAD843 #43D89C
split-complementary
#5143D8 #D89C43 #7FD843
monochromatic
#251C85 #3426B8 #5143D8 #8076E3 #AFA8ED

Accessibility & contrast

On white

6.68
#5143D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5143D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5143D8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5143D8#FFFFFF#000000##FFFFFF
##5143D81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#0056D5
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5143d8;
/* rgb */ color: rgb(81, 67, 216);
/* oklch */ color: oklch(49.6% 0.217 279.1);
Tailwind
colors: {
  custom: {
    50: '#9179e5',
    500: '#5143d8',
    950: '#000000',
  },
}
SCSS
$custom: #5143d8;
$custom-light: #9179e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5143d8",
  "rgb": {
    "r": 81,
    "g": 67,
    "b": 216
  },
  "hsl": {
    "h": 245.638,
    "s": 65.639,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49574,
    "c": 0.21714,
    "h": 279.1
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#5143D8
secondary
#D5DA9C
accent
#E93FD9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5143D8

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

Preview Lab → · Contrast checker → · Palette generator →

#5143D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva