#51299B#51299B

#51299B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.173 H 293.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#51299B
RGBrgb(81, 41, 155)
HSLhsl(261, 58%, 38%)
HSVhsv(261, 74%, 61%)
CMYKcmyk(47.7%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.65, 44.39, -55.40)
CIE-LCHlch(28.65, 70.99, 308.71°)
OKLaboklab(40.46% 0.0678 -0.1588)
OKLCHoklch(40.46% 0.173 293.1)
XYZxyz(10.1010, 5.7014, 31.5723)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51299B #739B29
analogous
#293A9B #51299B #8A299B
triadic
#51299B #9B5129 #299B51
tetradic
#51299B #9B293A #739B29 #299B8A
square
#51299B #9B293A #739B29 #299B8A
split-complementary
#51299B #9B8A29 #3A9B29
monochromatic
#1E0F3A #381C6B #51299B #6B37CA #8F67D7

Accessibility & contrast

On white

9.81
#51299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#51299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51299B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51299B#FFFFFF#000000##FFFFFF
##51299B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#3A475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51299b;
/* rgb */ color: rgb(81, 41, 155);
/* oklch */ color: oklch(40.5% 0.173 293.1);
Tailwind
colors: {
  custom: {
    50: '#8967b9',
    500: '#51299b',
    950: '#000000',
  },
}
SCSS
$custom: #51299b;
$custom-light: #8967b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51299b",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 261.053,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40464,
    "c": 0.17267,
    "h": 293.1
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#51299B
secondary
#9DBD63
accent
#E146AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51299B

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

Preview Lab → · Contrast checker → · Palette generator →

#51299B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva