#5145B1#5145B1

#5145B1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.165 H 282.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5145B1
RGBrgb(81, 69, 177)
HSLhsl(247, 44%, 48%)
HSVhsv(247, 61%, 69%)
CMYKcmyk(54.2%, 61%, 0%, 30.6%)
CIE-LABlab(36.33, 35.04, -56.12)
CIE-LCHlch(36.33, 66.16, 301.98°)
OKLaboklab(46.56% 0.037 -0.1609)
OKLCHoklch(46.56% 0.165 282.9)
XYZxyz(13.4548, 9.1791, 42.6492)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B1 #A5B145
analogous
#456FB1 #5145B1 #8745B1
triadic
#5145B1 #B15145 #45B151
tetradic
#5145B1 #B1456F #A5B145 #45B187
square
#5145B1 #B1456F #A5B145 #45B187
split-complementary
#5145B1 #B18745 #6FB145
monochromatic
#292359 #3D3485 #5145B1 #776DC6 #A099D7

Accessibility & contrast

On white

7.40
#5145B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5145B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B1#FFFFFF#000000##FFFFFF
##5145B11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#275F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145b1;
/* rgb */ color: rgb(81, 69, 177);
/* oklch */ color: oklch(46.6% 0.165 282.9);
Tailwind
colors: {
  custom: {
    50: '#8a79c9',
    500: '#5145b1',
    950: '#000000',
  },
}
SCSS
$custom: #5145b1;
$custom-light: #8a79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b1",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 246.667,
    "s": 43.902,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46564,
    "c": 0.16513,
    "h": 282.9
  },
  "luminance": 0.0918
}

Semantic roles & 50–950 ramp

primary
#5145B1
secondary
#BDC38E
accent
#D454C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5145B1

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

Preview Lab → · Contrast checker → · Palette generator →

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