#380E52#380E52

#380E52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 308.5°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#380E52
RGBrgb(56, 14, 82)
HSLhsl(277, 71%, 19%)
HSVhsv(277, 83%, 32%)
CMYKcmyk(31.7%, 82.9%, 0%, 67.8%)
CIE-LABlab(14.20, 33.13, -32.21)
CIE-LCHlch(14.20, 46.21, 315.80°)
OKLaboklab(27.52% 0.0729 -0.0915)
OKLCHoklch(27.52% 0.117 308.5)
XYZxyz(3.3106, 1.7641, 8.1471)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380E52 #28520E
analogous
#160E52 #380E52 #520E4A
triadic
#380E52 #52380E #0E5238
tetradic
#380E52 #52160E #28520E #0E4A52
square
#380E52 #52160E #28520E #0E4A52
split-complementary
#380E52 #4A520E #0E5216
monochromatic
#12041A #14051E #380E52 #5C1786 #7F20BB

Accessibility & contrast

On white

15.52
#380E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #380E52
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380E52#FFFFFF#000000##FFFFFF
##380E521.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #380e52;
/* rgb */ color: rgb(56, 14, 82);
/* oklch */ color: oklch(27.5% 0.117 308.5);
Tailwind
colors: {
  custom: {
    50: '#725283',
    500: '#380e52',
    950: '#000000',
  },
}
SCSS
$custom: #380e52;
$custom-light: #725283;
$custom-dark: #000000;
JSON
{
  "hex": "#380e52",
  "rgb": {
    "r": 56,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 277.059,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27523,
    "c": 0.11695,
    "h": 308.5
  },
  "luminance": 0.01764
}

Semantic roles & 50–950 ramp

primary
#380E52
secondary
#538C2F
accent
#EE3A7F
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380E52

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

Preview Lab → · Contrast checker → · Palette generator →

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