#381040#381040

#381040 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.3% C 0.094 H 320.6°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#381040
RGBrgb(56, 16, 64)
HSLhsl(290, 60%, 16%)
HSVhsv(290, 75%, 25%)
CMYKcmyk(12.5%, 75%, 0%, 74.9%)
CIE-LABlab(13.12, 27.83, -21.47)
CIE-LCHlch(13.12, 35.15, 322.36°)
OKLaboklab(26.31% 0.0729 -0.06)
OKLCHoklch(26.31% 0.094 320.6)
XYZxyz(2.7415, 1.5816, 5.0104)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381040 #184010
analogous
#201040 #381040 #401030
triadic
#381040 #403810 #104038
tetradic
#381040 #402010 #184010 #103040
square
#381040 #402010 #184010 #103040
split-complementary
#381040 #304010 #104020
monochromatic
#150618 #150618 #381040 #631C71 #8E28A2

Accessibility & contrast

On white

15.95
#381040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#381040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381040
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381040#FFFFFF#000000##FFFFFF
##3810401.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031F41
Deuteranopia (green-blind)
#15233F
Tritanopia (blue-blind)
#381826
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #381040;
/* rgb */ color: rgb(56, 16, 64);
/* oklch */ color: oklch(26.3% 0.094 320.6);
Tailwind
colors: {
  custom: {
    50: '#715275',
    500: '#381040',
    950: '#000000',
  },
}
SCSS
$custom: #381040;
$custom-light: #715275;
$custom-dark: #000000;
JSON
{
  "hex": "#381040",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 290,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26306,
    "c": 0.09438,
    "h": 320.6
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#381040
secondary
#3E7A32
accent
#E3455F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #381040

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

Preview Lab → · Contrast checker → · Palette generator →

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