#5145A5#5145A5

#5145A5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.149 H 284.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5145A5
RGBrgb(81, 69, 165)
HSLhsl(248, 41%, 46%)
HSVhsv(248, 58%, 65%)
CMYKcmyk(50.9%, 58.2%, 0%, 35.3%)
CIE-LABlab(35.44, 31.25, -50.40)
CIE-LCHlch(35.44, 59.30, 301.80°)
OKLaboklab(45.63% 0.0373 -0.1441)
OKLCHoklch(45.63% 0.149 284.5)
XYZxyz(12.3110, 8.7216, 36.6248)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145A5 #99A545
analogous
#4569A5 #5145A5 #8145A5
triadic
#5145A5 #A55145 #45A551
tetradic
#5145A5 #A54569 #99A545 #45A581
square
#5145A5 #A54569 #99A545 #45A581
split-complementary
#5145A5 #A58145 #69A545
monochromatic
#27214F #3C337A #5145A5 #7368C0 #9B93D2

Accessibility & contrast

On white

7.65
#5145A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5145A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5145A5#FFFFFF#000000##FFFFFF
##5145A51.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#325B6E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5145a5;
/* rgb */ color: rgb(81, 69, 165);
/* oklch */ color: oklch(45.6% 0.149 284.5);
Tailwind
colors: {
  custom: {
    50: '#8979c0',
    500: '#5145a5',
    950: '#000000',
  },
}
SCSS
$custom: #5145a5;
$custom-light: #8979c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5145a5",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 247.5,
    "s": 41.026,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45633,
    "c": 0.14887,
    "h": 284.5
  },
  "luminance": 0.08722
}

Semantic roles & 50–950 ramp

primary
#5145A5
secondary
#B7BD88
accent
#D157C2
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5145A5

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

Preview Lab → · Contrast checker → · Palette generator →

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