#5145AB#5145AB

#5145AB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.1% C 0.157 H 283.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5145AB
RGBrgb(81, 69, 171)
HSLhsl(247, 43%, 47%)
HSVhsv(247, 60%, 67%)
CMYKcmyk(52.6%, 59.6%, 0%, 32.9%)
CIE-LABlab(35.88, 33.14, -53.28)
CIE-LCHlch(35.88, 62.74, 301.88°)
OKLaboklab(46.09% 0.0372 -0.1526)
OKLCHoklch(46.09% 0.157 283.7)
XYZxyz(12.8699, 8.9451, 39.5686)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AB #9FAB45
analogous
#456CAB #5145AB #8445AB
triadic
#5145AB #AB5145 #45AB51
tetradic
#5145AB #AB456C #9FAB45 #45AB84
square
#5145AB #AB456C #9FAB45 #45AB84
split-complementary
#5145AB #AB8445 #6CAB45
monochromatic
#282254 #3C337F #5145AB #756AC3 #9D96D5

Accessibility & contrast

On white

7.53
#5145AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5145AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5145AB#FFFFFF#000000##FFFFFF
##5145AB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#2D5D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5145ab;
/* rgb */ color: rgb(81, 69, 171);
/* oklch */ color: oklch(46.1% 0.157 283.7);
Tailwind
colors: {
  custom: {
    50: '#8979c5',
    500: '#5145ab',
    950: '#000000',
  },
}
SCSS
$custom: #5145ab;
$custom-light: #8979c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ab",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 247.059,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46093,
    "c": 0.15706,
    "h": 283.7
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5145AB

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

Preview Lab → · Contrast checker → · Palette generator →

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