#5145B9#5145B9

#5145B9 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.2% C 0.176 H 282.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5145B9
RGBrgb(81, 69, 185)
HSLhsl(246, 46%, 50%)
HSVhsv(246, 63%, 73%)
CMYKcmyk(56.2%, 62.7%, 0%, 27.5%)
CIE-LABlab(36.94, 37.58, -59.84)
CIE-LCHlch(36.94, 70.66, 302.13°)
OKLaboklab(47.21% 0.0365 -0.1719)
OKLCHoklch(47.21% 0.176 282)
XYZxyz(14.2757, 9.5075, 46.9724)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B9 #ADB945
analogous
#4573B9 #5145B9 #8B45B9
triadic
#5145B9 #B95145 #45B951
tetradic
#5145B9 #B94573 #ADB945 #45B98B
square
#5145B9 #B94573 #ADB945 #45B98B
split-complementary
#5145B9 #B98B45 #73B945
monochromatic
#2A2460 #3D348C #5145B9 #7A71CA #A49EDB

Accessibility & contrast

On white

7.24
#5145B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5145B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B9#FFFFFF#000000##FFFFFF
##5145B91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#1D6178
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5145b9;
/* rgb */ color: rgb(81, 69, 185);
/* oklch */ color: oklch(47.2% 0.176 282.0);
Tailwind
colors: {
  custom: {
    50: '#8c79cf',
    500: '#5145b9',
    950: '#000000',
  },
}
SCSS
$custom: #5145b9;
$custom-light: #8c79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b9",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 246.207,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47209,
    "c": 0.17571,
    "h": 282
  },
  "luminance": 0.09508
}

Semantic roles & 50–950 ramp

primary
#5145B9
secondary
#C2C793
accent
#D552C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5145B9

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

Preview Lab → · Contrast checker → · Palette generator →

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