#5145B3#5145B3

#5145B3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.7% C 0.168 H 282.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5145B3
RGBrgb(81, 69, 179)
HSLhsl(247, 44%, 49%)
HSVhsv(247, 61%, 70%)
CMYKcmyk(54.7%, 61.5%, 0%, 29.8%)
CIE-LABlab(36.48, 35.67, -57.05)
CIE-LCHlch(36.48, 67.29, 302.02°)
OKLaboklab(46.72% 0.0369 -0.1637)
OKLCHoklch(46.72% 0.168 282.7)
XYZxyz(13.6556, 9.2594, 43.7068)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B3 #A7B345
analogous
#4570B3 #5145B3 #8845B3
triadic
#5145B3 #B35145 #45B351
tetradic
#5145B3 #B34570 #A7B345 #45B388
square
#5145B3 #B34570 #A7B345 #45B388
split-complementary
#5145B3 #B38845 #70B345
monochromatic
#29235B #3D3487 #5145B3 #786EC7 #A19AD8

Accessibility & contrast

On white

7.36
#5145B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5145B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B3#FFFFFF#000000##FFFFFF
##5145B31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#255F75
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5145b3;
/* rgb */ color: rgb(81, 69, 179);
/* oklch */ color: oklch(46.7% 0.168 282.7);
Tailwind
colors: {
  custom: {
    50: '#8b79cb',
    500: '#5145b3',
    950: '#000000',
  },
}
SCSS
$custom: #5145b3;
$custom-light: #8b79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b3",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 246.545,
    "s": 44.355,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46723,
    "c": 0.16779,
    "h": 282.7
  },
  "luminance": 0.0926
}

Semantic roles & 50–950 ramp

primary
#5145B3
secondary
#BFC48F
accent
#D454C6
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5145B3

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

Preview Lab → · Contrast checker → · Palette generator →

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