#381340#381340

#381340 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.7% C 0.089 H 320.1°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#381340
RGBrgb(56, 19, 64)
HSLhsl(289, 54%, 16%)
HSVhsv(289, 70%, 25%)
CMYKcmyk(12.5%, 70.3%, 0%, 74.9%)
CIE-LABlab(13.69, 26.25, -20.55)
CIE-LCHlch(13.69, 33.34, 321.93°)
OKLaboklab(26.72% 0.0686 -0.0573)
OKLCHoklch(26.72% 0.089 320.1)
XYZxyz(2.7891, 1.6768, 5.0262)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381340 #1B4013
analogous
#221340 #381340 #401332
triadic
#381340 #403813 #134038
tetradic
#381340 #402213 #1B4013 #133240
square
#381340 #402213 #1B4013 #133240
split-complementary
#381340 #324013 #134022
monochromatic
#150718 #150718 #381340 #61216F #8B2F9E

Accessibility & contrast

On white

15.73
#381340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#381340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381340
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381340#FFFFFF#000000##FFFFFF
##3813401.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082041
Deuteranopia (green-blind)
#17243F
Tritanopia (blue-blind)
#381A27
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #381340;
/* rgb */ color: rgb(56, 19, 64);
/* oklch */ color: oklch(26.7% 0.089 320.1);
Tailwind
colors: {
  custom: {
    50: '#705375',
    500: '#381340',
    950: '#000000',
  },
}
SCSS
$custom: #381340;
$custom-light: #705375;
$custom-dark: #000000;
JSON
{
  "hex": "#381340",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 289.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2672,
    "c": 0.08942,
    "h": 320.1
  },
  "luminance": 0.01677
}

Semantic roles & 50–950 ramp

primary
#381340
secondary
#427936
accent
#DE4A64
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #381340

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

Preview Lab → · Contrast checker → · Palette generator →

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