#5148AE#5148AE

#5148AE is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.9% C 0.157 H 282.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5148AE
RGBrgb(81, 72, 174)
HSLhsl(245, 41%, 48%)
HSVhsv(245, 59%, 68%)
CMYKcmyk(53.4%, 58.6%, 0%, 31.8%)
CIE-LABlab(36.82, 32.24, -53.54)
CIE-LCHlch(36.82, 62.50, 301.05°)
OKLaboklab(46.85% 0.0339 -0.1533)
OKLCHoklch(46.85% 0.157 282.5)
XYZxyz(13.3483, 9.4393, 41.1548)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148AE #A5AE48
analogous
#4872AE #5148AE #8448AE
triadic
#5148AE #AE5148 #48AE51
tetradic
#5148AE #AE4872 #A5AE48 #48AE84
square
#5148AE #AE4872 #A5AE48 #48AE84
split-complementary
#5148AE #AE8448 #72AE48
monochromatic
#292457 #3D3683 #5148AE #7770C4 #A09BD6

Accessibility & contrast

On white

7.27
#5148AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5148AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5148AE
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148AE#FFFFFF#000000##FFFFFF
##5148AE1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#2A6074
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5148ae;
/* rgb */ color: rgb(81, 72, 174);
/* oklch */ color: oklch(46.9% 0.157 282.5);
Tailwind
colors: {
  custom: {
    50: '#8a7bc7',
    500: '#5148ae',
    950: '#000000',
  },
}
SCSS
$custom: #5148ae;
$custom-light: #8a7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5148ae",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 245.294,
    "s": 41.463,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46854,
    "c": 0.15705,
    "h": 282.5
  },
  "luminance": 0.0944
}

Semantic roles & 50–950 ramp

primary
#5148AE
secondary
#BDC290
accent
#D157C6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5148AE

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

Preview Lab → · Contrast checker → · Palette generator →

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