#5146CC#5146CC

#5146CC is a mid, vivid blue. Relative luminance 0.105; OKLCH L 49.0% C 0.199 H 279.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5146CC
RGBrgb(81, 70, 204)
HSLhsl(245, 57%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.3%, 65.7%, 0%, 20%)
CIE-LABlab(38.70, 43.01, -68.06)
CIE-LCHlch(38.70, 80.51, 302.29°)
OKLaboklab(48.97% 0.0338 -0.196)
OKLCHoklch(48.97% 0.199 279.8)
XYZxyz(16.4791, 10.4881, 58.2710)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146CC #C1CC46
analogous
#467ECC #5146CC #9446CC
triadic
#5146CC #CC5146 #46CC51
tetradic
#5146CC #CC467E #C1CC46 #46CC94
square
#5146CC #CC467E #C1CC46 #46CC94
split-complementary
#5146CC #CC9446 #7ECC46
monochromatic
#282177 #382EA7 #5146CC #7E76D9 #ABA6E6

Accessibility & contrast

On white

6.78
#5146CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5146CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146CC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146CC#FFFFFF#000000##FFFFFF
##5146CC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5146cc;
/* rgb */ color: rgb(81, 70, 204);
/* oklch */ color: oklch(49.0% 0.199 279.8);
Tailwind
colors: {
  custom: {
    50: '#8f7add',
    500: '#5146cc',
    950: '#000000',
  },
}
SCSS
$custom: #5146cc;
$custom-light: #8f7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5146cc",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 244.925,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.19891,
    "h": 279.8
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#5146CC
secondary
#CFD49A
accent
#E048D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5146CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5146CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva