#5145B0#5145B0

#5145B0 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.5% C 0.164 H 283.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5145B0
RGBrgb(81, 69, 176)
HSLhsl(247, 44%, 48%)
HSVhsv(247, 61%, 69%)
CMYKcmyk(54%, 60.8%, 0%, 31%)
CIE-LABlab(36.25, 34.72, -55.65)
CIE-LCHlch(36.25, 65.59, 301.96°)
OKLaboklab(46.49% 0.037 -0.1595)
OKLCHoklch(46.49% 0.164 283.1)
XYZxyz(13.3555, 9.1394, 42.1262)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B0 #A4B045
analogous
#456EB0 #5145B0 #8645B0
triadic
#5145B0 #B05145 #45B051
tetradic
#5145B0 #B0456E #A4B045 #45B086
square
#5145B0 #B0456E #A4B045 #45B086
split-complementary
#5145B0 #B08645 #6EB045
monochromatic
#292358 #3D3484 #5145B0 #776DC6 #A099D7

Accessibility & contrast

On white

7.43
#5145B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5145B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B0
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B0#FFFFFF#000000##FFFFFF
##5145B01.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#285E74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145b0;
/* rgb */ color: rgb(81, 69, 176);
/* oklch */ color: oklch(46.5% 0.164 283.1);
Tailwind
colors: {
  custom: {
    50: '#8a79c8',
    500: '#5145b0',
    950: '#000000',
  },
}
SCSS
$custom: #5145b0;
$custom-light: #8a79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b0",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 176
  },
  "hsl": {
    "h": 246.729,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46485,
    "c": 0.16379,
    "h": 283.1
  },
  "luminance": 0.0914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5145B0

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

Preview Lab → · Contrast checker → · Palette generator →

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