#5145B4#5145B4

#5145B4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.8% C 0.169 H 282.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5145B4
RGBrgb(81, 69, 180)
HSLhsl(246, 45%, 49%)
HSVhsv(246, 62%, 71%)
CMYKcmyk(55%, 61.7%, 0%, 29.4%)
CIE-LABlab(36.56, 35.99, -57.52)
CIE-LCHlch(36.56, 67.85, 302.03°)
OKLaboklab(46.8% 0.0368 -0.1651)
OKLCHoklch(46.8% 0.169 282.6)
XYZxyz(13.7571, 9.3000, 44.2413)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B4 #A8B445
analogous
#4571B4 #5145B4 #8945B4
triadic
#5145B4 #B45145 #45B451
tetradic
#5145B4 #B44571 #A8B445 #45B489
square
#5145B4 #B44571 #A8B445 #45B489
split-complementary
#5145B4 #B48945 #71B445
monochromatic
#29235C #3D3488 #5145B4 #786FC8 #A19BD9

Accessibility & contrast

On white

7.34
#5145B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5145B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B4#FFFFFF#000000##FFFFFF
##5145B41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#236076
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5145b4;
/* rgb */ color: rgb(81, 69, 180);
/* oklch */ color: oklch(46.8% 0.169 282.6);
Tailwind
colors: {
  custom: {
    50: '#8b79cb',
    500: '#5145b4',
    950: '#000000',
  },
}
SCSS
$custom: #5145b4;
$custom-light: #8b79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b4",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 246.486,
    "s": 44.578,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46804,
    "c": 0.16912,
    "h": 282.6
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5145B4

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

Preview Lab → · Contrast checker → · Palette generator →

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