#5145AA#5145AA

#5145AA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.0% C 0.156 H 283.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5145AA
RGBrgb(81, 69, 170)
HSLhsl(247, 42%, 47%)
HSVhsv(247, 59%, 67%)
CMYKcmyk(52.4%, 59.4%, 0%, 33.3%)
CIE-LABlab(35.80, 32.82, -52.80)
CIE-LCHlch(35.80, 62.17, 301.87°)
OKLaboklab(46.02% 0.0372 -0.1512)
OKLCHoklch(46.02% 0.156 283.8)
XYZxyz(12.7750, 8.9072, 39.0685)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AA #9EAA45
analogous
#456CAA #5145AA #8445AA
triadic
#5145AA #AA5145 #45AA51
tetradic
#5145AA #AA456C #9EAA45 #45AA84
square
#5145AA #AA456C #9EAA45 #45AA84
split-complementary
#5145AA #AA8445 #6CAA45
monochromatic
#282253 #3C337E #5145AA #746AC2 #9D95D4

Accessibility & contrast

On white

7.55
#5145AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5145AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5145AA#FFFFFF#000000##FFFFFF
##5145AA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#2E5D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5145aa;
/* rgb */ color: rgb(81, 69, 170);
/* oklch */ color: oklch(46.0% 0.156 283.8);
Tailwind
colors: {
  custom: {
    50: '#8979c4',
    500: '#5145aa',
    950: '#000000',
  },
}
SCSS
$custom: #5145aa;
$custom-light: #8979c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5145aa",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 247.129,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46016,
    "c": 0.1557,
    "h": 283.8
  },
  "luminance": 0.08908
}

Semantic roles & 50–950 ramp

primary
#5145AA
secondary
#BAC08B
accent
#D256C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5145AA

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

Preview Lab → · Contrast checker → · Palette generator →

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