#5142CD#5142CD

#5142CD is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.4% C 0.205 H 280.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5142CD
RGBrgb(81, 66, 205)
HSLhsl(246, 58%, 53%)
HSVhsv(246, 68%, 80%)
CMYKcmyk(60.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(37.94, 45.63, -69.90)
CIE-LCHlch(37.94, 83.47, 303.14°)
OKLaboklab(48.44% 0.0369 -0.2014)
OKLCHoklch(48.44% 0.205 280.4)
XYZxyz(16.3575, 10.0524, 58.8241)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142CD #BECD42
analogous
#4278CD #5142CD #9642CD
triadic
#5142CD #CD5142 #42CD51
tetradic
#5142CD #CD4278 #BECD42 #42CD96
square
#5142CD #CD4278 #BECD42 #42CD96
split-complementary
#5142CD #CD9642 #78CD42
monochromatic
#281F76 #392CA6 #5142CD #7E72DA #AAA3E7

Accessibility & contrast

On white

6.97
#5142CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5142CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142CD
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142CD#FFFFFF#000000##FFFFFF
##5142CD1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5142cd;
/* rgb */ color: rgb(81, 66, 205);
/* oklch */ color: oklch(48.4% 0.205 280.4);
Tailwind
colors: {
  custom: {
    50: '#8f78dd',
    500: '#5142cd',
    950: '#000000',
  },
}
SCSS
$custom: #5142cd;
$custom-light: #8f78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5142cd",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 246.475,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4844,
    "c": 0.20476,
    "h": 280.4
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#5142CD
secondary
#CDD397
accent
#E146D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5142CD

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

Preview Lab → · Contrast checker → · Palette generator →

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