#5145A3#5145A3

#5145A3 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.5% C 0.146 H 284.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5145A3
RGBrgb(81, 69, 163)
HSLhsl(248, 41%, 45%)
HSVhsv(248, 58%, 64%)
CMYKcmyk(50.3%, 57.7%, 0%, 36.1%)
CIE-LABlab(35.30, 30.62, -49.43)
CIE-LCHlch(35.30, 58.14, 301.77°)
OKLaboklab(45.48% 0.0373 -0.1413)
OKLCHoklch(45.48% 0.146 284.8)
XYZxyz(12.1304, 8.6493, 35.6735)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145A3 #97A345
analogous
#4568A3 #5145A3 #8045A3
triadic
#5145A3 #A35145 #45A351
tetradic
#5145A3 #A34568 #97A345 #45A380
square
#5145A3 #A34568 #97A345 #45A380
split-complementary
#5145A3 #A38045 #68A345
monochromatic
#26214D #3C3378 #5145A3 #7267BF #9A92D1

Accessibility & contrast

On white

7.69
#5145A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5145A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145A3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145A3#FFFFFF#000000##FFFFFF
##5145A31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#335A6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5145a3;
/* rgb */ color: rgb(81, 69, 163);
/* oklch */ color: oklch(45.5% 0.146 284.8);
Tailwind
colors: {
  custom: {
    50: '#8879bf',
    500: '#5145a3',
    950: '#000000',
  },
}
SCSS
$custom: #5145a3;
$custom-light: #8879bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5145a3",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 247.66,
    "s": 40.517,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45483,
    "c": 0.14611,
    "h": 284.8
  },
  "luminance": 0.0865
}

Semantic roles & 50–950 ramp

primary
#5145A3
secondary
#B6BC87
accent
#D057C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5145A3

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

Preview Lab → · Contrast checker → · Palette generator →

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