#514EB2#514EB2

#514EB2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.154 H 280.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#514EB2
RGBrgb(81, 78, 178)
HSLhsl(242, 39%, 50%)
HSVhsv(242, 56%, 70%)
CMYKcmyk(54.5%, 56.2%, 0%, 30.2%)
CIE-LABlab(38.57, 29.78, -53.07)
CIE-LCHlch(38.57, 60.86, 299.30°)
OKLaboklab(48.25% 0.0275 -0.1519)
OKLCHoklch(48.25% 0.154 280.2)
XYZxyz(14.1511, 10.4116, 43.3748)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514EB2 #AFB24E
analogous
#4E7DB2 #514EB2 #834EB2
triadic
#514EB2 #B2514E #4EB251
tetradic
#514EB2 #B24E7D #AFB24E #4EB283
square
#514EB2 #B24E7D #AFB24E #4EB283
split-complementary
#514EB2 #B2834E #7DB24E
monochromatic
#2A295D #3D3B88 #514EB2 #7B79C5 #A5A3D7

Accessibility & contrast

On white

6.81
#514EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#514EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #514EB2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514EB2#FFFFFF#000000##FFFFFF
##514EB21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055FB5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#246578
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #514eb2;
/* rgb */ color: rgb(81, 78, 178);
/* oklch */ color: oklch(48.2% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#8a7fca',
    500: '#514eb2',
    950: '#000000',
  },
}
SCSS
$custom: #514eb2;
$custom-light: #8a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#514eb2",
  "rgb": {
    "r": 81,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 241.8,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48245,
    "c": 0.15439,
    "h": 280.2
  },
  "luminance": 0.10412
}

Semantic roles & 50–950 ramp

primary
#514EB2
secondary
#C3C498
accent
#CF59CC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #514EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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