#5145AE#5145AE

#5145AE is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.3% C 0.161 H 283.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5145AE
RGBrgb(81, 69, 174)
HSLhsl(247, 43%, 48%)
HSVhsv(247, 60%, 68%)
CMYKcmyk(53.4%, 60.3%, 0%, 31.8%)
CIE-LABlab(36.10, 34.09, -54.70)
CIE-LCHlch(36.10, 64.45, 301.93°)
OKLaboklab(46.33% 0.0371 -0.1568)
OKLCHoklch(46.33% 0.161 283.3)
XYZxyz(13.1591, 9.0608, 41.0917)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AE #A2AE45
analogous
#456EAE #5145AE #8545AE
triadic
#5145AE #AE5145 #45AE51
tetradic
#5145AE #AE456E #A2AE45 #45AE85
square
#5145AE #AE456E #A2AE45 #45AE85
split-complementary
#5145AE #AE8545 #6EAE45
monochromatic
#282256 #3D3482 #5145AE #766CC5 #9F97D6

Accessibility & contrast

On white

7.47
#5145AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5145AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5145AE#FFFFFF#000000##FFFFFF
##5145AE1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#2A5E73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145ae;
/* rgb */ color: rgb(81, 69, 174);
/* oklch */ color: oklch(46.3% 0.161 283.3);
Tailwind
colors: {
  custom: {
    50: '#8a79c7',
    500: '#5145ae',
    950: '#000000',
  },
}
SCSS
$custom: #5145ae;
$custom-light: #8a79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ae",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 246.857,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46327,
    "c": 0.16111,
    "h": 283.3
  },
  "luminance": 0.09062
}

Semantic roles & 50–950 ramp

primary
#5145AE
secondary
#BCC28D
accent
#D355C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5145AE

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

Preview Lab → · Contrast checker → · Palette generator →

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