#380F52#380F52

#380F52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.116 H 308.4°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#380F52
RGBrgb(56, 15, 82)
HSLhsl(277, 69%, 19%)
HSVhsv(277, 82%, 32%)
CMYKcmyk(31.7%, 81.7%, 0%, 67.8%)
CIE-LABlab(14.35, 32.68, -31.96)
CIE-LCHlch(14.35, 45.71, 315.64°)
OKLaboklab(27.63% 0.0718 -0.0907)
OKLCHoklch(27.63% 0.116 308.4)
XYZxyz(3.3244, 1.7917, 8.1517)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F52 #29520F
analogous
#170F52 #380F52 #520F4B
triadic
#380F52 #52380F #0F5238
tetradic
#380F52 #52170F #29520F #0F4B52
square
#380F52 #52170F #29520F #0F4B52
split-complementary
#380F52 #4B520F #0F5217
monochromatic
#12051A #15061E #380F52 #5B1886 #7F22B9

Accessibility & contrast

On white

15.46
#380F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#380F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380F52
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F52#FFFFFF#000000##FFFFFF
##380F521.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#341F30
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #380f52;
/* rgb */ color: rgb(56, 15, 82);
/* oklch */ color: oklch(27.6% 0.116 308.4);
Tailwind
colors: {
  custom: {
    50: '#725283',
    500: '#380f52',
    950: '#000000',
  },
}
SCSS
$custom: #380f52;
$custom-light: #725283;
$custom-dark: #000000;
JSON
{
  "hex": "#380f52",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 276.716,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27633,
    "c": 0.11572,
    "h": 308.4
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#380F52
secondary
#548C31
accent
#EC3C80
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380F52

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

Preview Lab → · Contrast checker → · Palette generator →

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