#5145B5#5145B5

#5145B5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.9% C 0.170 H 282.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5145B5
RGBrgb(81, 69, 181)
HSLhsl(246, 45%, 49%)
HSVhsv(246, 62%, 71%)
CMYKcmyk(55.2%, 61.9%, 0%, 29%)
CIE-LABlab(36.63, 36.31, -57.99)
CIE-LCHlch(36.63, 68.41, 302.05°)
OKLaboklab(46.88% 0.0368 -0.1664)
OKLCHoklch(46.88% 0.17 282.5)
XYZxyz(13.8594, 9.3409, 44.7798)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B5 #A9B545
analogous
#4571B5 #5145B5 #8945B5
triadic
#5145B5 #B55145 #45B551
tetradic
#5145B5 #B54571 #A9B545 #45B589
square
#5145B5 #B54571 #A9B545 #45B589
split-complementary
#5145B5 #B58945 #71B545
monochromatic
#29235C #3D3489 #5145B5 #796FC8 #A29BD9

Accessibility & contrast

On white

7.32
#5145B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5145B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B5#FFFFFF#000000##FFFFFF
##5145B51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#226076
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5145b5;
/* rgb */ color: rgb(81, 69, 181);
/* oklch */ color: oklch(46.9% 0.170 282.5);
Tailwind
colors: {
  custom: {
    50: '#8b79cc',
    500: '#5145b5',
    950: '#000000',
  },
}
SCSS
$custom: #5145b5;
$custom-light: #8b79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b5",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 246.429,
    "s": 44.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46884,
    "c": 0.17045,
    "h": 282.5
  },
  "luminance": 0.09342
}

Semantic roles & 50–950 ramp

primary
#5145B5
secondary
#C0C591
accent
#D553C7
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5145B5

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

Preview Lab → · Contrast checker → · Palette generator →

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