#5140AF#5140AF

#5140AF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.169 H 284.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5140AF
RGBrgb(81, 64, 175)
HSLhsl(249, 46%, 47%)
HSVhsv(249, 63%, 69%)
CMYKcmyk(53.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(35.02, 37.43, -57.05)
CIE-LCHlch(35.02, 68.23, 303.27°)
OKLaboklab(45.56% 0.0422 -0.1637)
OKLCHoklch(45.56% 0.169 284.5)
XYZxyz(12.9623, 8.5106, 41.5088)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140AF #9EAF40
analogous
#4067AF #5140AF #8940AF
triadic
#5140AF #AF5140 #40AF51
tetradic
#5140AF #AF4067 #9EAF40 #40AF89
square
#5140AF #AF4067 #9EAF40 #40AF89
split-complementary
#5140AF #AF8940 #67AF40
monochromatic
#281F55 #3C3082 #5140AF #7465C7 #9D92D7

Accessibility & contrast

On white

7.77
#5140AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5140AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140AF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140AF#FFFFFF#000000##FFFFFF
##5140AF1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#2A5B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5140af;
/* rgb */ color: rgb(81, 64, 175);
/* oklch */ color: oklch(45.6% 0.169 284.5);
Tailwind
colors: {
  custom: {
    50: '#8a76c8',
    500: '#5140af',
    950: '#000000',
  },
}
SCSS
$custom: #5140af;
$custom-light: #8a76c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5140af",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 249.189,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.16904,
    "h": 284.5
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#5140AF
secondary
#BAC388
accent
#D652C2
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5140AF

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

Preview Lab → · Contrast checker → · Palette generator →

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