#5145B2#5145B2

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

Color values

HEX#5145B2
RGBrgb(81, 69, 178)
HSLhsl(247, 44%, 48%)
HSVhsv(247, 61%, 70%)
CMYKcmyk(54.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(36.40, 35.36, -56.59)
CIE-LCHlch(36.40, 66.72, 302.00°)
OKLaboklab(46.64% 0.0369 -0.1623)
OKLCHoklch(46.64% 0.166 282.8)
XYZxyz(13.5549, 9.2191, 43.1761)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B2 #A6B245
analogous
#456FB2 #5145B2 #8745B2
triadic
#5145B2 #B25145 #45B251
tetradic
#5145B2 #B2456F #A6B245 #45B287
square
#5145B2 #B2456F #A6B245 #45B287
split-complementary
#5145B2 #B28745 #6FB245
monochromatic
#29235A #3D3486 #5145B2 #776EC7 #A19AD8

Accessibility & contrast

On white

7.38
#5145B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5145B2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B2#FFFFFF#000000##FFFFFF
##5145B21.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#265F75
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5145b2;
/* rgb */ color: rgb(81, 69, 178);
/* oklch */ color: oklch(46.6% 0.166 282.8);
Tailwind
colors: {
  custom: {
    50: '#8a79ca',
    500: '#5145b2',
    950: '#000000',
  },
}
SCSS
$custom: #5145b2;
$custom-light: #8a79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 246.606,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.16647,
    "h": 282.8
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#5145B2
secondary
#BEC48F
accent
#D454C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5145B2

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

Preview Lab → · Contrast checker → · Palette generator →

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