#5142DC#5142DC

#5142DC is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.8% C 0.223 H 278.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5142DC
RGBrgb(81, 66, 220)
HSLhsl(246, 69%, 56%)
HSVhsv(246, 70%, 86%)
CMYKcmyk(63.2%, 70%, 0%, 13.7%)
CIE-LABlab(39.26, 50.29, -76.36)
CIE-LCHlch(39.26, 91.43, 303.37°)
OKLaboklab(49.8% 0.0346 -0.2203)
OKLCHoklch(49.8% 0.223 278.9)
XYZxyz(18.2557, 10.8116, 68.8211)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142DC #CDDC42
analogous
#4280DC #5142DC #9E42DC
triadic
#5142DC #DC5142 #42DC51
tetradic
#5142DC #DC4280 #CDDC42 #42DC9E
square
#5142DC #DC4280 #CDDC42 #42DC9E
split-complementary
#5142DC #DC9E42 #80DC42
monochromatic
#251A8A #3223BE #5142DC #8176E6 #B0A9EF

Accessibility & contrast

On white

6.64
#5142DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5142DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142DC
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142DC#FFFFFF#000000##FFFFFF
##5142DC1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0056D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5142dc;
/* rgb */ color: rgb(81, 66, 220);
/* oklch */ color: oklch(49.8% 0.223 278.9);
Tailwind
colors: {
  custom: {
    50: '#9278e8',
    500: '#5142dc',
    950: '#000000',
  },
}
SCSS
$custom: #5142dc;
$custom-light: #9278e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5142dc",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 245.844,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49795,
    "c": 0.22302,
    "h": 278.9
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5142DC

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

Preview Lab → · Contrast checker → · Palette generator →

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