#380B56#380B56

#380B56 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.125 H 306.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#380B56
RGBrgb(56, 11, 86)
HSLhsl(276, 77%, 19%)
HSVhsv(276, 87%, 34%)
CMYKcmyk(34.9%, 87.2%, 0%, 66.3%)
CIE-LABlab(14.13, 35.37, -35.05)
CIE-LCHlch(14.13, 49.79, 315.26°)
OKLaboklab(27.59% 0.0746 -0.0998)
OKLCHoklch(27.59% 0.125 306.8)
XYZxyz(3.4299, 1.7520, 8.9598)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380B56 #29560B
analogous
#130B56 #380B56 #560B4F
triadic
#380B56 #56380B #0B5638
tetradic
#380B56 #56130B #29560B #0B4F56
square
#380B56 #56130B #29560B #0B4F56
split-complementary
#380B56 #4F560B #0B5613
monochromatic
#12031B #150420 #380B56 #5B128C #7F19C3

Accessibility & contrast

On white

15.55
#380B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #380B56
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380B56#FFFFFF#000000##FFFFFF
##380B561.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#331F31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #380b56;
/* rgb */ color: rgb(56, 11, 86);
/* oklch */ color: oklch(27.6% 0.125 306.8);
Tailwind
colors: {
  custom: {
    50: '#735186',
    500: '#380b56',
    950: '#000000',
  },
}
SCSS
$custom: #380b56;
$custom-light: #735186;
$custom-dark: #000000;
JSON
{
  "hex": "#380b56",
  "rgb": {
    "r": 56,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 276,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27587,
    "c": 0.12457,
    "h": 306.8
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#380B56
secondary
#54912B
accent
#F43481
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #380B56

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

Preview Lab → · Contrast checker → · Palette generator →

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