#514791#514791

#514791 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.6% C 0.118 H 286.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#514791
RGBrgb(81, 71, 145)
HSLhsl(248, 34%, 42%)
HSVhsv(248, 51%, 57%)
CMYKcmyk(44.1%, 51%, 0%, 43.1%)
CIE-LABlab(34.60, 23.75, -39.67)
CIE-LCHlch(34.60, 46.23, 300.91°)
OKLaboklab(44.58% 0.034 -0.1126)
OKLCHoklch(44.58% 0.118 286.8)
XYZxyz(10.7560, 8.2997, 27.8179)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514791 #879147
analogous
#476291 #514791 #764791
triadic
#514791 #915147 #479151
tetradic
#514791 #914762 #879147 #479176
square
#514791 #914762 #879147 #479176
split-complementary
#514791 #917647 #629147
monochromatic
#231F3F #3A3368 #514791 #6E63B2 #948CC7

Accessibility & contrast

On white

7.89
#514791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#514791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514791
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514791#FFFFFF#000000##FFFFFF
##5147911.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285394
Deuteranopia (green-blind)
#274F8F
Tritanopia (blue-blind)
#3E5665
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #514791;
/* rgb */ color: rgb(81, 71, 145);
/* oklch */ color: oklch(44.6% 0.118 286.8);
Tailwind
colors: {
  custom: {
    50: '#867ab2',
    500: '#514791',
    950: '#000000',
  },
}
SCSS
$custom: #514791;
$custom-light: #867ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#514791",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 248.108,
    "s": 34.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44576,
    "c": 0.11758,
    "h": 286.8
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#514791
secondary
#ACB282
accent
#CA5DBC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #514791

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

Preview Lab → · Contrast checker → · Palette generator →

#514791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva