#51458D#51458D

#51458D is a dark, moderate violet. Relative luminance 0.079; OKLCH L 43.9% C 0.115 H 288.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#51458D
RGBrgb(81, 69, 141)
HSLhsl(250, 34%, 41%)
HSVhsv(250, 51%, 55%)
CMYKcmyk(42.6%, 51.1%, 0%, 44.7%)
CIE-LABlab(33.83, 23.80, -38.45)
CIE-LCHlch(33.83, 45.22, 301.76°)
OKLaboklab(43.92% 0.0363 -0.109)
OKLCHoklch(43.92% 0.115 288.4)
XYZxyz(10.3278, 7.9283, 26.1803)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51458D #818D45
analogous
#455D8D #51458D #75458D
triadic
#51458D #8D5145 #458D51
tetradic
#51458D #8D455D #818D45 #458D75
square
#51458D #8D455D #818D45 #458D75
split-complementary
#51458D #8D7545 #5D8D45
monochromatic
#221D3B #393164 #51458D #6C5FB1 #9288C5

Accessibility & contrast

On white

8.12
#51458D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#51458D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51458D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51458D#FFFFFF#000000##FFFFFF
##51458D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#274E8B
Tritanopia (blue-blind)
#405462
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51458d;
/* rgb */ color: rgb(81, 69, 141);
/* oklch */ color: oklch(43.9% 0.115 288.4);
Tailwind
colors: {
  custom: {
    50: '#8579af',
    500: '#51458d',
    950: '#000000',
  },
}
SCSS
$custom: #51458d;
$custom-light: #8579af;
$custom-dark: #000000;
JSON
{
  "hex": "#51458d",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 141
  },
  "hsl": {
    "h": 250,
    "s": 34.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.11486,
    "h": 288.4
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#51458D
secondary
#A8B07E
accent
#CA5DB8
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #51458D

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

Preview Lab → · Contrast checker → · Palette generator →

#51458D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva