#514B8E#514B8E

#514B8E is a mid, moderate blue. Relative luminance 0.087; OKLCH L 45.2% C 0.107 H 285.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#514B8E
RGBrgb(81, 75, 142)
HSLhsl(245, 31%, 43%)
HSVhsv(245, 47%, 56%)
CMYKcmyk(43%, 47.2%, 0%, 44.3%)
CIE-LABlab(35.47, 20.26, -36.45)
CIE-LCHlch(35.47, 41.71, 299.07°)
OKLaboklab(45.17% 0.0283 -0.1031)
OKLCHoklch(45.17% 0.107 285.4)
XYZxyz(10.7905, 8.7341, 26.7032)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514B8E #888E4B
analogous
#4B678E #514B8E #724B8E
triadic
#514B8E #8E514B #4B8E51
tetradic
#514B8E #8E4B67 #888E4B #4B8E72
square
#514B8E #8E4B67 #888E4B #4B8E72
split-complementary
#514B8E #8E724B #678E4B
monochromatic
#23213E #3A3666 #514B8E #6E67AF #948FC4

Accessibility & contrast

On white

7.65
#514B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#514B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514B8E
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514B8E#FFFFFF#000000##FFFFFF
##514B8E1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#3F5965
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #514b8e;
/* rgb */ color: rgb(81, 75, 142);
/* oklch */ color: oklch(45.2% 0.107 285.4);
Tailwind
colors: {
  custom: {
    50: '#857daf',
    500: '#514b8e',
    950: '#000000',
  },
}
SCSS
$custom: #514b8e;
$custom-light: #857daf;
$custom-dark: #000000;
JSON
{
  "hex": "#514b8e",
  "rgb": {
    "r": 81,
    "g": 75,
    "b": 142
  },
  "hsl": {
    "h": 245.373,
    "s": 30.876,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4517,
    "c": 0.10695,
    "h": 285.4
  },
  "luminance": 0.08734
}

Semantic roles & 50–950 ramp

primary
#514B8E
secondary
#ACB085
accent
#C761BE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #514B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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