#5145B8#5145B8

#5145B8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.1% C 0.174 H 282.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5145B8
RGBrgb(81, 69, 184)
HSLhsl(246, 45%, 50%)
HSVhsv(246, 63%, 72%)
CMYKcmyk(56%, 62.5%, 0%, 27.8%)
CIE-LABlab(36.87, 37.26, -59.38)
CIE-LCHlch(36.87, 70.10, 302.11°)
OKLaboklab(47.13% 0.0366 -0.1705)
OKLCHoklch(47.13% 0.174 282.1)
XYZxyz(14.1705, 9.4654, 46.4184)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B8 #ACB845
analogous
#4572B8 #5145B8 #8B45B8
triadic
#5145B8 #B85145 #45B851
tetradic
#5145B8 #B84572 #ACB845 #45B88B
square
#5145B8 #B84572 #ACB845 #45B88B
split-complementary
#5145B8 #B88B45 #72B845
monochromatic
#2A245F #3D348B #5145B8 #7A71CA #A39DDA

Accessibility & contrast

On white

7.26
#5145B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5145B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B8#FFFFFF#000000##FFFFFF
##5145B81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#1E6178
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5145b8;
/* rgb */ color: rgb(81, 69, 184);
/* oklch */ color: oklch(47.1% 0.174 282.1);
Tailwind
colors: {
  custom: {
    50: '#8b79ce',
    500: '#5145b8',
    950: '#000000',
  },
}
SCSS
$custom: #5145b8;
$custom-light: #8b79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b8",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 246.261,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47127,
    "c": 0.17441,
    "h": 282.1
  },
  "luminance": 0.09466
}

Semantic roles & 50–950 ramp

primary
#5145B8
secondary
#C1C792
accent
#D553C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5145B8

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

Preview Lab → · Contrast checker → · Palette generator →

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