#380F56#380F56

#380F56 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 306.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#380F56
RGBrgb(56, 15, 86)
HSLhsl(275, 70%, 20%)
HSVhsv(275, 83%, 34%)
CMYKcmyk(34.9%, 82.6%, 0%, 66.3%)
CIE-LABlab(14.70, 33.70, -34.11)
CIE-LCHlch(14.70, 47.95, 314.66°)
OKLaboklab(27.99% 0.0709 -0.097)
OKLCHoklch(27.99% 0.12 306.1)
XYZxyz(3.4811, 1.8543, 8.9768)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380F56 #2D560F
analogous
#150F56 #380F56 #560F51
triadic
#380F56 #56380F #0F5638
tetradic
#380F56 #56150F #2D560F #0F5156
square
#380F56 #56150F #2D560F #0F5156
split-complementary
#380F56 #51560F #0F5615
monochromatic
#11051A #160622 #380F56 #5A188A #7C21BE

Accessibility & contrast

On white

15.32
#380F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#380F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380F56
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380F56#FFFFFF#000000##FFFFFF
##380F561.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#332132
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #380f56;
/* rgb */ color: rgb(56, 15, 86);
/* oklch */ color: oklch(28.0% 0.120 306.1);
Tailwind
colors: {
  custom: {
    50: '#725286',
    500: '#380f56',
    950: '#000000',
  },
}
SCSS
$custom: #380f56;
$custom-light: #725286;
$custom-dark: #000000;
JSON
{
  "hex": "#380f56",
  "rgb": {
    "r": 56,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 274.648,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27989,
    "c": 0.12018,
    "h": 306.1
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#380F56
secondary
#599031
accent
#ED3B86
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380F56

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

Preview Lab → · Contrast checker → · Palette generator →

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