#381152#381152

#381152 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.113 H 308.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#381152
RGBrgb(56, 17, 82)
HSLhsl(276, 66%, 19%)
HSVhsv(276, 79%, 32%)
CMYKcmyk(31.7%, 79.3%, 0%, 67.8%)
CIE-LABlab(14.68, 31.74, -31.42)
CIE-LCHlch(14.68, 44.66, 315.29°)
OKLaboklab(27.87% 0.0697 -0.0892)
OKLCHoklch(27.87% 0.113 308)
XYZxyz(3.3540, 1.8509, 8.1616)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381152 #2B5211
analogous
#181152 #381152 #52114C
triadic
#381152 #523811 #115238
tetradic
#381152 #521811 #2B5211 #114C52
square
#381152 #521811 #2B5211 #114C52
split-complementary
#381152 #4C5211 #115218
monochromatic
#110519 #15061F #381152 #5B1C85 #7D26B7

Accessibility & contrast

On white

15.33
#381152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#381152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381152
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381152#FFFFFF#000000##FFFFFF
##3811521.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#342030
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #381152;
/* rgb */ color: rgb(56, 17, 82);
/* oklch */ color: oklch(27.9% 0.113 308.0);
Tailwind
colors: {
  custom: {
    50: '#725383',
    500: '#381152',
    950: '#000000',
  },
}
SCSS
$custom: #381152;
$custom-light: #725383;
$custom-dark: #000000;
JSON
{
  "hex": "#381152",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 276,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27867,
    "c": 0.11314,
    "h": 308
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#381152
secondary
#578B34
accent
#E93F83
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381152

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

Preview Lab → · Contrast checker → · Palette generator →

#381152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva