#5145B7#5145B7

#5145B7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.0% C 0.173 H 282.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5145B7
RGBrgb(81, 69, 183)
HSLhsl(246, 45%, 49%)
HSVhsv(246, 62%, 72%)
CMYKcmyk(55.7%, 62.3%, 0%, 28.2%)
CIE-LABlab(36.79, 36.94, -58.91)
CIE-LCHlch(36.79, 69.54, 302.09°)
OKLaboklab(47.05% 0.0366 -0.1692)
OKLCHoklch(47.05% 0.173 282.2)
XYZxyz(14.0661, 9.4236, 45.8683)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B7 #ABB745
analogous
#4572B7 #5145B7 #8A45B7
triadic
#5145B7 #B75145 #45B751
tetradic
#5145B7 #B74572 #ABB745 #45B78A
square
#5145B7 #B74572 #ABB745 #45B78A
split-complementary
#5145B7 #B78A45 #72B745
monochromatic
#2A235E #3D348B #5145B7 #7970C9 #A39DDA

Accessibility & contrast

On white

7.28
#5145B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5145B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B7#FFFFFF#000000##FFFFFF
##5145B71.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#206177
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5145b7;
/* rgb */ color: rgb(81, 69, 183);
/* oklch */ color: oklch(47.0% 0.173 282.2);
Tailwind
colors: {
  custom: {
    50: '#8b79cd',
    500: '#5145b7',
    950: '#000000',
  },
}
SCSS
$custom: #5145b7;
$custom-light: #8b79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b7",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 246.316,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.17309,
    "h": 282.2
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#5145B7
secondary
#C1C692
accent
#D553C7
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5145B7

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

Preview Lab → · Contrast checker → · Palette generator →

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