#5146CF#5146CF

#5146CF is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.2% C 0.203 H 279.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5146CF
RGBrgb(81, 70, 207)
HSLhsl(245, 59%, 54%)
HSVhsv(245, 66%, 81%)
CMYKcmyk(60.9%, 66.2%, 0%, 18.8%)
CIE-LABlab(38.96, 43.96, -69.38)
CIE-LCHlch(38.96, 82.14, 302.36°)
OKLaboklab(49.23% 0.0335 -0.1999)
OKLCHoklch(49.23% 0.203 279.5)
XYZxyz(16.8424, 10.6334, 60.1843)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146CF #C4CF46
analogous
#467FCF #5146CF #9646CF
triadic
#5146CF #CF5146 #46CF51
tetradic
#5146CF #CF467F #C4CF46 #46CF96
square
#5146CF #CF467F #C4CF46 #46CF96
split-complementary
#5146CF #CF9646 #7FCF46
monochromatic
#27207B #372CAB #5146CF #7F77DC #ACA7E8

Accessibility & contrast

On white

6.72
#5146CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5146CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146CF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146CF#FFFFFF#000000##FFFFFF
##5146CF1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5146cf;
/* rgb */ color: rgb(81, 70, 207);
/* oklch */ color: oklch(49.2% 0.203 279.5);
Tailwind
colors: {
  custom: {
    50: '#8f7adf',
    500: '#5146cf',
    950: '#000000',
  },
}
SCSS
$custom: #5146cf;
$custom-light: #8f7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5146cf",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 207
  },
  "hsl": {
    "h": 244.818,
    "s": 58.798,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49228,
    "c": 0.20268,
    "h": 279.5
  },
  "luminance": 0.10635
}

Semantic roles & 50–950 ramp

primary
#5146CF
secondary
#D1D59B
accent
#E246D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5146CF

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

Preview Lab → · Contrast checker → · Palette generator →

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