#5145A2#5145A2

#5145A2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.145 H 284.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5145A2
RGBrgb(81, 69, 162)
HSLhsl(248, 40%, 45%)
HSVhsv(248, 57%, 64%)
CMYKcmyk(50%, 57.4%, 0%, 36.5%)
CIE-LABlab(35.23, 30.30, -48.94)
CIE-LCHlch(35.23, 57.56, 301.76°)
OKLaboklab(45.41% 0.0373 -0.1398)
OKLCHoklch(45.41% 0.145 284.9)
XYZxyz(12.0411, 8.6136, 35.2035)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145A2 #96A245
analogous
#4567A2 #5145A2 #7F45A2
triadic
#5145A2 #A25145 #45A251
tetradic
#5145A2 #A24567 #96A245 #45A27F
square
#5145A2 #A24567 #96A245 #45A27F
split-complementary
#5145A2 #A27F45 #67A245
monochromatic
#26204C #3C3377 #5145A2 #7266BE #9991D0

Accessibility & contrast

On white

7.71
#5145A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5145A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145A2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145A2#FFFFFF#000000##FFFFFF
##5145A21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0456A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#345A6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5145a2;
/* rgb */ color: rgb(81, 69, 162);
/* oklch */ color: oklch(45.4% 0.145 284.9);
Tailwind
colors: {
  custom: {
    50: '#8879be',
    500: '#5145a2',
    950: '#000000',
  },
}
SCSS
$custom: #5145a2;
$custom-light: #8879be;
$custom-dark: #000000;
JSON
{
  "hex": "#5145a2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 247.742,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45408,
    "c": 0.14473,
    "h": 284.9
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#5145A2
secondary
#B5BC87
accent
#D058C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5145A2

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

Preview Lab → · Contrast checker → · Palette generator →

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