#514EB8#514EB8

#514EB8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.163 H 279.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#514EB8
RGBrgb(81, 78, 184)
HSLhsl(242, 43%, 51%)
HSVhsv(242, 58%, 72%)
CMYKcmyk(56%, 57.6%, 0%, 27.8%)
CIE-LABlab(39.00, 31.73, -55.91)
CIE-LCHlch(39.00, 64.29, 299.58°)
OKLaboklab(48.7% 0.0275 -0.1603)
OKLCHoklch(48.7% 0.163 279.7)
XYZxyz(14.7667, 10.6578, 46.6171)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514EB8 #B5B84E
analogous
#4E80B8 #514EB8 #864EB8
triadic
#514EB8 #B8514E #4EB851
tetradic
#514EB8 #B84E80 #B5B84E #4EB886
square
#514EB8 #B84E80 #B5B84E #4EB886
split-complementary
#514EB8 #B8864E #80B84E
monochromatic
#2A2864 #3C398F #514EB8 #7C7ACA #A7A5DB

Accessibility & contrast

On white

6.71
#514EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#514EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514EB8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514EB8#FFFFFF#000000##FFFFFF
##514EB81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#1C677B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #514eb8;
/* rgb */ color: rgb(81, 78, 184);
/* oklch */ color: oklch(48.7% 0.163 279.7);
Tailwind
colors: {
  custom: {
    50: '#8b7fce',
    500: '#514eb8',
    950: '#000000',
  },
}
SCSS
$custom: #514eb8;
$custom-light: #8b7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#514eb8",
  "rgb": {
    "r": 81,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 241.698,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48697,
    "c": 0.16264,
    "h": 279.7
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#514EB8
secondary
#C7C89A
accent
#D355CF
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #514EB8

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

Preview Lab → · Contrast checker → · Palette generator →

#514EB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva