#380C47#380C47

#380C47 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.108 H 315.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#380C47
RGBrgb(56, 12, 71)
HSLhsl(285, 71%, 16%)
HSVhsv(285, 83%, 28%)
CMYKcmyk(21.1%, 83.1%, 0%, 72.2%)
CIE-LABlab(12.98, 31.33, -26.60)
CIE-LCHlch(12.98, 41.10, 319.67°)
OKLaboklab(26.37% 0.0772 -0.075)
OKLCHoklch(26.37% 0.108 315.8)
XYZxyz(2.8995, 1.5587, 6.1081)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380C47 #1B470C
analogous
#1B0C47 #380C47 #470C39
triadic
#380C47 #47380C #0C4738
tetradic
#380C47 #471B0C #1B470C #0C3947
square
#380C47 #471B0C #1B470C #0C3947
split-complementary
#380C47 #39470C #0C471B
monochromatic
#15041A #15041A #380C47 #61157B #8B1EB0

Accessibility & contrast

On white

16.01
#380C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#380C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380C47
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380C47#FFFFFF#000000##FFFFFF
##380C471.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#0B2346
Tritanopia (blue-blind)
#371929
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #380c47;
/* rgb */ color: rgb(56, 12, 71);
/* oklch */ color: oklch(26.4% 0.108 315.8);
Tailwind
colors: {
  custom: {
    50: '#71507b',
    500: '#380c47',
    950: '#000000',
  },
}
SCSS
$custom: #380c47;
$custom-light: #71507b;
$custom-dark: #000000;
JSON
{
  "hex": "#380c47",
  "rgb": {
    "r": 56,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 284.746,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.26372,
    "c": 0.10758,
    "h": 315.8
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#380C47
secondary
#42832C
accent
#EE3A68
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #380C47

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

Preview Lab → · Contrast checker → · Palette generator →

#380C47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva