#51388D#51388D

#51388D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.6% C 0.135 H 293.2°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#51388D
RGBrgb(81, 56, 141)
HSLhsl(258, 43%, 39%)
HSVhsv(258, 60%, 55%)
CMYKcmyk(42.6%, 60.3%, 0%, 44.7%)
CIE-LABlab(30.64, 31.92, -43.57)
CIE-LCHlch(30.64, 54.01, 306.23°)
OKLaboklab(41.55% 0.0531 -0.1241)
OKLCHoklch(41.55% 0.135 293.2)
XYZxyz(9.6139, 6.5005, 25.9423)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51388D #748D38
analogous
#38498D #51388D #7B388D
triadic
#51388D #8D5138 #388D51
tetradic
#51388D #8D3849 #748D38 #388D7B
square
#51388D #8D3849 #748D38 #388D7B
split-complementary
#51388D #8D7B38 #498D38
monochromatic
#1F1535 #382761 #51388D #6B4BB7 #8F77C9

Accessibility & contrast

On white

9.13
#51388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#51388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51388D
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51388D#FFFFFF#000000##FFFFFF
##51388D1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#0C478B
Tritanopia (blue-blind)
#414B5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #51388d;
/* rgb */ color: rgb(81, 56, 141);
/* oklch */ color: oklch(41.6% 0.135 293.2);
Tailwind
colors: {
  custom: {
    50: '#8670af',
    500: '#51388d',
    950: '#000000',
  },
}
SCSS
$custom: #51388d;
$custom-light: #8670af;
$custom-dark: #000000;
JSON
{
  "hex": "#51388d",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 257.647,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41554,
    "c": 0.13497,
    "h": 293.2
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#51388D
secondary
#9EB26F
accent
#D355AE
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51388D

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

Preview Lab → · Contrast checker → · Palette generator →

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