#5140AE#5140AE

#5140AE is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.168 H 284.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5140AE
RGBrgb(81, 64, 174)
HSLhsl(249, 46%, 47%)
HSVhsv(249, 63%, 68%)
CMYKcmyk(53.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(34.95, 37.12, -56.58)
CIE-LCHlch(34.95, 67.67, 303.27°)
OKLaboklab(45.48% 0.0423 -0.1623)
OKLCHoklch(45.48% 0.168 284.6)
XYZxyz(12.8644, 8.4714, 40.9935)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140AE #9DAE40
analogous
#4066AE #5140AE #8840AE
triadic
#5140AE #AE5140 #40AE51
tetradic
#5140AE #AE4066 #9DAE40 #40AE88
square
#5140AE #AE4066 #9DAE40 #40AE88
split-complementary
#5140AE #AE8840 #66AE40
monochromatic
#271F55 #3C3081 #5140AE #7465C6 #9C92D7

Accessibility & contrast

On white

7.79
#5140AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5140AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140AE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140AE#FFFFFF#000000##FFFFFF
##5140AE1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#2B5B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5140ae;
/* rgb */ color: rgb(81, 64, 174);
/* oklch */ color: oklch(45.5% 0.168 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a76c7',
    500: '#5140ae',
    950: '#000000',
  },
}
SCSS
$custom: #5140ae;
$custom-light: #8a76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5140ae",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 249.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45482,
    "c": 0.16772,
    "h": 284.6
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

primary
#5140AE
secondary
#B9C288
accent
#D652C1
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5140AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5140AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva