#5145AD#5145AD

#5145AD is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.2% C 0.160 H 283.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5145AD
RGBrgb(81, 69, 173)
HSLhsl(247, 43%, 47%)
HSVhsv(247, 60%, 68%)
CMYKcmyk(53.2%, 60.1%, 0%, 32.2%)
CIE-LABlab(36.03, 33.77, -54.23)
CIE-LCHlch(36.03, 63.88, 301.91°)
OKLaboklab(46.25% 0.0371 -0.1554)
OKLCHoklch(46.25% 0.16 283.4)
XYZxyz(13.0620, 9.0220, 40.5802)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AD #A1AD45
analogous
#456DAD #5145AD #8545AD
triadic
#5145AD #AD5145 #45AD51
tetradic
#5145AD #AD456D #A1AD45 #45AD85
square
#5145AD #AD456D #A1AD45 #45AD85
split-complementary
#5145AD #AD8545 #6DAD45
monochromatic
#282255 #3D3481 #5145AD #756BC4 #9E97D5

Accessibility & contrast

On white

7.49
#5145AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5145AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145AD
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145AD#FFFFFF#000000##FFFFFF
##5145AD1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#2B5D72
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145ad;
/* rgb */ color: rgb(81, 69, 173);
/* oklch */ color: oklch(46.2% 0.160 283.4);
Tailwind
colors: {
  custom: {
    50: '#8a79c6',
    500: '#5145ad',
    950: '#000000',
  },
}
SCSS
$custom: #5145ad;
$custom-light: #8a79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ad",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 246.923,
    "s": 42.975,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46249,
    "c": 0.15977,
    "h": 283.4
  },
  "luminance": 0.09023
}

Semantic roles & 50–950 ramp

primary
#5145AD
secondary
#BBC18C
accent
#D355C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5145AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5145AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva