#381052#381052

#381052 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.114 H 308.2°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#381052
RGBrgb(56, 16, 82)
HSLhsl(276, 67%, 19%)
HSVhsv(276, 80%, 32%)
CMYKcmyk(31.7%, 80.5%, 0%, 67.8%)
CIE-LABlab(14.52, 32.22, -31.70)
CIE-LCHlch(14.52, 45.20, 315.47°)
OKLaboklab(27.75% 0.0708 -0.09)
OKLCHoklch(27.75% 0.114 308.2)
XYZxyz(3.3389, 1.8206, 8.1565)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381052 #2A5210
analogous
#171052 #381052 #52104B
triadic
#381052 #523810 #105238
tetradic
#381052 #521710 #2A5210 #104B52
square
#381052 #521710 #2A5210 #104B52
split-complementary
#381052 #4B5210 #105217
monochromatic
#11051A #15061F #381052 #5B1A85 #7E24B8

Accessibility & contrast

On white

15.39
#381052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#381052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381052
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381052#FFFFFF#000000##FFFFFF
##3810521.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381052;
/* rgb */ color: rgb(56, 16, 82);
/* oklch */ color: oklch(27.7% 0.114 308.2);
Tailwind
colors: {
  custom: {
    50: '#725383',
    500: '#381052',
    950: '#000000',
  },
}
SCSS
$custom: #381052;
$custom-light: #725383;
$custom-dark: #000000;
JSON
{
  "hex": "#381052",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 276.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27748,
    "c": 0.11445,
    "h": 308.2
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#381052
secondary
#558C32
accent
#EA3E82
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #381052

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

Preview Lab → · Contrast checker → · Palette generator →

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