#514B98#514B98

#514B98 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.122 H 284.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#514B98
RGBrgb(81, 75, 152)
HSLhsl(245, 34%, 45%)
HSVhsv(245, 51%, 60%)
CMYKcmyk(46.7%, 50.7%, 0%, 40.4%)
CIE-LABlab(36.08, 23.37, -41.55)
CIE-LCHlch(36.08, 47.67, 299.35°)
OKLaboklab(45.83% 0.0295 -0.1181)
OKLCHoklch(45.83% 0.122 284)
XYZxyz(11.5752, 9.0480, 30.8362)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514B98 #92984B
analogous
#4B6C98 #514B98 #784B98
triadic
#514B98 #98514B #4B9851
tetradic
#514B98 #984B6C #92984B #4B9878
square
#514B98 #984B6C #92984B #4B9878
split-complementary
#514B98 #98784B #6C984B
monochromatic
#252346 #3B376F #514B98 #706AB6 #9893CA

Accessibility & contrast

On white

7.47
#514B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#514B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514B98
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514B98#FFFFFF#000000##FFFFFF
##514B981.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#3A5B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #514b98;
/* rgb */ color: rgb(81, 75, 152);
/* oklch */ color: oklch(45.8% 0.122 284.0);
Tailwind
colors: {
  custom: {
    50: '#867db7',
    500: '#514b98',
    950: '#000000',
  },
}
SCSS
$custom: #514b98;
$custom-light: #867db7;
$custom-dark: #000000;
JSON
{
  "hex": "#514b98",
  "rgb": {
    "r": 81,
    "g": 75,
    "b": 152
  },
  "hsl": {
    "h": 244.675,
    "s": 33.921,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.12171,
    "h": 284
  },
  "luminance": 0.09048
}

Semantic roles & 50–950 ramp

primary
#514B98
secondary
#B3B689
accent
#CA5EC2
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #514B98

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

Preview Lab → · Contrast checker → · Palette generator →

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