#51388E#51388E

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

Color values

HEX#51388E
RGBrgb(81, 56, 142)
HSLhsl(257, 43%, 39%)
HSVhsv(257, 61%, 56%)
CMYKcmyk(43%, 60.6%, 0%, 44.3%)
CIE-LABlab(30.71, 32.22, -44.07)
CIE-LCHlch(30.71, 54.59, 306.17°)
OKLaboklab(41.63% 0.0531 -0.1255)
OKLCHoklch(41.63% 0.136 292.9)
XYZxyz(9.6887, 6.5304, 26.3360)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51388E #758E38
analogous
#384A8E #51388E #7C388E
triadic
#51388E #8E5138 #388E51
tetradic
#51388E #8E384A #758E38 #388E7C
square
#51388E #8E384A #758E38 #388E7C
split-complementary
#51388E #8E7C38 #4A8E38
monochromatic
#1F1536 #382762 #51388E #6B4BB8 #8F77C9

Accessibility & contrast

On white

9.11
#51388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#51388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51388E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51388E#FFFFFF#000000##FFFFFF
##51388E1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#09478C
Tritanopia (blue-blind)
#404B5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #51388e;
/* rgb */ color: rgb(81, 56, 142);
/* oklch */ color: oklch(41.6% 0.136 292.9);
Tailwind
colors: {
  custom: {
    50: '#8670b0',
    500: '#51388e',
    950: '#000000',
  },
}
SCSS
$custom: #51388e;
$custom-light: #8670b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51388e",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 257.442,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41629,
    "c": 0.13632,
    "h": 292.9
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#51388E
secondary
#9FB26F
accent
#D355AE
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51388E

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

Preview Lab → · Contrast checker → · Palette generator →

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