#5142CF#5142CF

#5142CF is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.6% C 0.207 H 280.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5142CF
RGBrgb(81, 66, 207)
HSLhsl(246, 59%, 54%)
HSVhsv(246, 68%, 81%)
CMYKcmyk(60.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(38.11, 46.26, -70.77)
CIE-LCHlch(38.11, 84.55, 303.17°)
OKLaboklab(48.62% 0.0366 -0.204)
OKLCHoklch(48.62% 0.207 280.2)
XYZxyz(16.6005, 10.1495, 60.1037)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142CF #C0CF42
analogous
#4279CF #5142CF #9742CF
triadic
#5142CF #CF5142 #42CF51
tetradic
#5142CF #CF4279 #C0CF42 #42CF97
square
#5142CF #CF4279 #C0CF42 #42CF97
split-complementary
#5142CF #CF9742 #79CF42
monochromatic
#281F78 #382BA9 #5142CF #7E73DB #ABA4E8

Accessibility & contrast

On white

6.93
#5142CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5142CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142CF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142CF#FFFFFF#000000##FFFFFF
##5142CF1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5142cf;
/* rgb */ color: rgb(81, 66, 207);
/* oklch */ color: oklch(48.6% 0.207 280.2);
Tailwind
colors: {
  custom: {
    50: '#8f78df',
    500: '#5142cf',
    950: '#000000',
  },
}
SCSS
$custom: #5142cf;
$custom-light: #8f78df;
$custom-dark: #000000;
JSON
{
  "hex": "#5142cf",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 246.383,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48617,
    "c": 0.20723,
    "h": 280.2
  },
  "luminance": 0.10151
}

Semantic roles & 50–950 ramp

primary
#5142CF
secondary
#CED598
accent
#E345D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5142CF

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

Preview Lab → · Contrast checker → · Palette generator →

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