#5148AA#5148AA

#5148AA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.6% C 0.152 H 282.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5148AA
RGBrgb(81, 72, 170)
HSLhsl(246, 40%, 47%)
HSVhsv(246, 58%, 67%)
CMYKcmyk(52.4%, 57.6%, 0%, 33.3%)
CIE-LABlab(36.53, 30.96, -51.63)
CIE-LCHlch(36.53, 60.20, 300.95°)
OKLaboklab(46.55% 0.0339 -0.1477)
OKLCHoklch(46.55% 0.152 282.9)
XYZxyz(12.9642, 9.2856, 39.1316)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148AA #A1AA48
analogous
#4870AA #5148AA #8248AA
triadic
#5148AA #AA5148 #48AA51
tetradic
#5148AA #AA4870 #A1AA48 #48AA82
square
#5148AA #AA4870 #A1AA48 #48AA82
split-complementary
#5148AA #AA8248 #70AA48
monochromatic
#282454 #3D367F #5148AA #756EC1 #9E99D4

Accessibility & contrast

On white

7.35
#5148AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5148AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5148AA#FFFFFF#000000##FFFFFF
##5148AA1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#2D5F72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5148aa;
/* rgb */ color: rgb(81, 72, 170);
/* oklch */ color: oklch(46.6% 0.152 282.9);
Tailwind
colors: {
  custom: {
    50: '#897bc4',
    500: '#5148aa',
    950: '#000000',
  },
}
SCSS
$custom: #5148aa;
$custom-light: #897bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5148aa",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 170
  },
  "hsl": {
    "h": 245.51,
    "s": 40.496,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4655,
    "c": 0.15158,
    "h": 282.9
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#5148AA
secondary
#BBC08E
accent
#D057C5
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5148AA

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

Preview Lab → · Contrast checker → · Palette generator →

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