#5142CA#5142CA

#5142CA is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.201 H 280.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5142CA
RGBrgb(81, 66, 202)
HSLhsl(247, 56%, 53%)
HSVhsv(247, 67%, 79%)
CMYKcmyk(59.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(37.68, 44.70, -68.58)
CIE-LCHlch(37.68, 81.86, 303.10°)
OKLaboklab(48.18% 0.0373 -0.1975)
OKLCHoklch(48.18% 0.201 280.7)
XYZxyz(15.9989, 9.9089, 56.9352)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142CA #BBCA42
analogous
#4277CA #5142CA #9542CA
triadic
#5142CA #CA5142 #42CA51
tetradic
#5142CA #CA4277 #BBCA42 #42CA95
square
#5142CA #CA4277 #BBCA42 #42CA95
split-complementary
#5142CA #CA9542 #77CA42
monochromatic
#292072 #3A2DA2 #5142CA #7D72D7 #A9A2E5

Accessibility & contrast

On white

7.04
#5142CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5142CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142CA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142CA#FFFFFF#000000##FFFFFF
##5142CA1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5142ca;
/* rgb */ color: rgb(81, 66, 202);
/* oklch */ color: oklch(48.2% 0.201 280.7);
Tailwind
colors: {
  custom: {
    50: '#8f78db',
    500: '#5142ca',
    950: '#000000',
  },
}
SCSS
$custom: #5142ca;
$custom-light: #8f78db;
$custom-dark: #000000;
JSON
{
  "hex": "#5142ca",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 246.618,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.20104,
    "h": 280.7
  },
  "luminance": 0.0991
}

Semantic roles & 50–950 ramp

primary
#5142CA
secondary
#CBD196
accent
#DF48CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5142CA

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

Preview Lab → · Contrast checker → · Palette generator →

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