#380C51#380C51

#380C51 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.118 H 309.5°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#380C51
RGBrgb(56, 12, 81)
HSLhsl(278, 74%, 18%)
HSVhsv(278, 85%, 32%)
CMYKcmyk(30.9%, 85.2%, 0%, 68.2%)
CIE-LABlab(13.81, 33.73, -32.15)
CIE-LCHlch(13.81, 46.60, 316.38°)
OKLaboklab(27.23% 0.0751 -0.0913)
OKLCHoklch(27.23% 0.118 309.5)
XYZxyz(3.2473, 1.6978, 7.9396)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380C51 #25510C
analogous
#150C51 #380C51 #510C47
triadic
#380C51 #51380C #0C5138
tetradic
#380C51 #51150C #25510C #0C4751
square
#380C51 #51150C #25510C #0C4751
split-complementary
#380C51 #47510C #0C5115
monochromatic
#12041B #13041C #380C51 #5D1486 #821CBC

Accessibility & contrast

On white

15.68
#380C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#380C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380C51
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380C51#FFFFFF#000000##FFFFFF
##380C511.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#341D2E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #380c51;
/* rgb */ color: rgb(56, 12, 81);
/* oklch */ color: oklch(27.2% 0.118 309.5);
Tailwind
colors: {
  custom: {
    50: '#725182',
    500: '#380c51',
    950: '#000000',
  },
}
SCSS
$custom: #380c51;
$custom-light: #725182;
$custom-dark: #000000;
JSON
{
  "hex": "#380c51",
  "rgb": {
    "r": 56,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 278.261,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27227,
    "c": 0.11819,
    "h": 309.5
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#380C51
secondary
#4F8C2C
accent
#F1377A
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #380C51

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

Preview Lab → · Contrast checker → · Palette generator →

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