#5145A8#5145A8

#5145A8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.9% C 0.153 H 284.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5145A8
RGBrgb(81, 69, 168)
HSLhsl(247, 42%, 46%)
HSVhsv(247, 59%, 66%)
CMYKcmyk(51.8%, 58.9%, 0%, 34.1%)
CIE-LABlab(35.66, 32.19, -51.84)
CIE-LCHlch(35.66, 61.02, 301.84°)
OKLaboklab(45.86% 0.0373 -0.1484)
OKLCHoklch(45.86% 0.153 284.1)
XYZxyz(12.5872, 8.8321, 38.0797)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145A8 #9CA845
analogous
#456BA8 #5145A8 #8345A8
triadic
#5145A8 #A85145 #45A851
tetradic
#5145A8 #A8456B #9CA845 #45A883
square
#5145A8 #A8456B #9CA845 #45A883
split-complementary
#5145A8 #A88345 #6BA845
monochromatic
#272151 #3C337D #5145A8 #7469C1 #9C94D3

Accessibility & contrast

On white

7.59
#5145A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5145A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145A8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145A8#FFFFFF#000000##FFFFFF
##5145A81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#2F5C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5145a8;
/* rgb */ color: rgb(81, 69, 168);
/* oklch */ color: oklch(45.9% 0.153 284.1);
Tailwind
colors: {
  custom: {
    50: '#8979c3',
    500: '#5145a8',
    950: '#000000',
  },
}
SCSS
$custom: #5145a8;
$custom-light: #8979c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5145a8",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 247.273,
    "s": 41.772,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.15298,
    "h": 284.1
  },
  "luminance": 0.08833
}

Semantic roles & 50–950 ramp

primary
#5145A8
secondary
#B8BF8A
accent
#D256C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5145A8

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

Preview Lab → · Contrast checker → · Palette generator →

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