#380D52#380D52

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

Color values

HEX#380D52
RGBrgb(56, 13, 82)
HSLhsl(277, 73%, 19%)
HSVhsv(277, 84%, 32%)
CMYKcmyk(31.7%, 84.1%, 0%, 67.8%)
CIE-LABlab(14.05, 33.56, -32.46)
CIE-LCHlch(14.05, 46.69, 315.96°)
OKLaboklab(27.42% 0.0739 -0.0922)
OKLCHoklch(27.42% 0.118 308.7)
XYZxyz(3.2975, 1.7379, 8.1427)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380D52 #27520D
analogous
#150D52 #380D52 #520D49
triadic
#380D52 #52380D #0D5238
tetradic
#380D52 #52150D #27520D #0D4952
square
#380D52 #52150D #27520D #0D4952
split-complementary
#380D52 #49520D #0D5215
monochromatic
#12041A #14051D #380D52 #5C1587 #801EBC

Accessibility & contrast

On white

15.58
#380D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#380D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380D52
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380D52#FFFFFF#000000##FFFFFF
##380D521.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#341E2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #380d52;
/* rgb */ color: rgb(56, 13, 82);
/* oklch */ color: oklch(27.4% 0.118 308.7);
Tailwind
colors: {
  custom: {
    50: '#725183',
    500: '#380d52',
    950: '#000000',
  },
}
SCSS
$custom: #380d52;
$custom-light: #725183;
$custom-dark: #000000;
JSON
{
  "hex": "#380d52",
  "rgb": {
    "r": 56,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 277.391,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27417,
    "c": 0.11813,
    "h": 308.7
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#380D52
secondary
#528D2E
accent
#EF387D
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380D52

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

Preview Lab → · Contrast checker → · Palette generator →

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