#5146A2#5146A2

#5146A2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.143 H 284.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5146A2
RGBrgb(81, 70, 162)
HSLhsl(247, 40%, 45%)
HSVhsv(247, 57%, 64%)
CMYKcmyk(50%, 56.8%, 0%, 36.5%)
CIE-LABlab(35.47, 29.68, -48.55)
CIE-LCHlch(35.47, 56.90, 301.44°)
OKLaboklab(45.59% 0.0361 -0.1387)
OKLCHoklch(45.59% 0.143 284.6)
XYZxyz(12.1031, 8.7377, 35.2242)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146A2 #97A246
analogous
#4669A2 #5146A2 #7F46A2
triadic
#5146A2 #A25146 #46A251
tetradic
#5146A2 #A24669 #97A246 #46A27F
square
#5146A2 #A24669 #97A246 #46A27F
split-complementary
#5146A2 #A27F46 #69A246
monochromatic
#26214D #3C3477 #5146A2 #7268BE #9A92D0

Accessibility & contrast

On white

7.64
#5146A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5146A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146A2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146A2#FFFFFF#000000##FFFFFF
##5146A21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A56A5
Deuteranopia (green-blind)
#0251A0
Tritanopia (blue-blind)
#345B6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5146a2;
/* rgb */ color: rgb(81, 70, 162);
/* oklch */ color: oklch(45.6% 0.143 284.6);
Tailwind
colors: {
  custom: {
    50: '#887abe',
    500: '#5146a2',
    950: '#000000',
  },
}
SCSS
$custom: #5146a2;
$custom-light: #887abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5146a2",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 162
  },
  "hsl": {
    "h": 247.174,
    "s": 39.655,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45589,
    "c": 0.1433,
    "h": 284.6
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#5146A2
secondary
#B6BC88
accent
#D058C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5146A2

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

Preview Lab → · Contrast checker → · Palette generator →

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