#5142DD#5142DD

#5142DD is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.224 H 278.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5142DD
RGBrgb(81, 66, 221)
HSLhsl(246, 70%, 56%)
HSVhsv(246, 70%, 87%)
CMYKcmyk(63.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(39.35, 50.60, -76.79)
CIE-LCHlch(39.35, 91.96, 303.38°)
OKLaboklab(49.89% 0.0344 -0.2216)
OKLCHoklch(49.89% 0.224 278.8)
XYZxyz(18.3885, 10.8647, 69.5207)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142DD #CEDD42
analogous
#4281DD #5142DD #9E42DD
triadic
#5142DD #DD5142 #42DD51
tetradic
#5142DD #DD4281 #CEDD42 #42DD9E
square
#5142DD #DD4281 #CEDD42 #42DD9E
split-complementary
#5142DD #DD9E42 #81DD42
monochromatic
#24198C #3222BF #5142DD #8176E6 #B1AAF0

Accessibility & contrast

On white

6.62
#5142DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5142DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142DD
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142DD#FFFFFF#000000##FFFFFF
##5142DD1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0056DA
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5142dd;
/* rgb */ color: rgb(81, 66, 221);
/* oklch */ color: oklch(49.9% 0.224 278.8);
Tailwind
colors: {
  custom: {
    50: '#9278e9',
    500: '#5142dd',
    950: '#000000',
  },
}
SCSS
$custom: #5142dd;
$custom-light: #9278e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5142dd",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 245.806,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.49887,
    "c": 0.22422,
    "h": 278.8
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#5142DD
secondary
#D7DD9D
accent
#EC3BDB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5142DD

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

Preview Lab → · Contrast checker → · Palette generator →

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