#5146BC#5146BC

#5146BC is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.6% C 0.178 H 281.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5146BC
RGBrgb(81, 70, 188)
HSLhsl(246, 47%, 51%)
HSVhsv(246, 63%, 74%)
CMYKcmyk(56.9%, 62.8%, 0%, 26.3%)
CIE-LABlab(37.41, 37.93, -60.85)
CIE-LCHlch(37.41, 71.70, 301.94°)
OKLaboklab(47.62% 0.0353 -0.1748)
OKLCHoklch(47.62% 0.178 281.4)
XYZxyz(14.6578, 9.7595, 48.6786)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BC #B1BC46
analogous
#4676BC #5146BC #8C46BC
triadic
#5146BC #BC5146 #46BC51
tetradic
#5146BC #BC4676 #B1BC46 #46BC8C
square
#5146BC #BC4676 #B1BC46 #46BC8C
split-complementary
#5146BC #BC8C46 #76BC46
monochromatic
#2A2464 #3D3490 #5146BC #7B73CC #A6A0DD

Accessibility & contrast

On white

7.11
#5146BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5146BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BC#FFFFFF#000000##FFFFFF
##5146BC1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#17637A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5146bc;
/* rgb */ color: rgb(81, 70, 188);
/* oklch */ color: oklch(47.6% 0.178 281.4);
Tailwind
colors: {
  custom: {
    50: '#8c7ad1',
    500: '#5146bc',
    950: '#000000',
  },
}
SCSS
$custom: #5146bc;
$custom-light: #8c7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5146bc",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 245.593,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47621,
    "c": 0.17837,
    "h": 281.4
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#5146BC
secondary
#C4C995
accent
#D651CA
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5146BC

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

Preview Lab → · Contrast checker → · Palette generator →

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