#381C70#381C70

#381C70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.135 H 292.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#381C70
RGBrgb(56, 28, 112)
HSLhsl(260, 60%, 27%)
HSVhsv(260, 75%, 44%)
CMYKcmyk(50%, 75%, 0%, 56.1%)
CIE-LABlab(19.40, 34.41, -43.66)
CIE-LCHlch(19.40, 55.58, 308.24°)
OKLaboklab(32.04% 0.0513 -0.1252)
OKLCHoklch(32.04% 0.135 292.3)
XYZxyz(4.9700, 2.8409, 15.6126)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C70 #54701C
analogous
#1C2A70 #381C70 #621C70
triadic
#381C70 #70381C #1C7038
tetradic
#381C70 #701C2A #54701C #1C7062
square
#381C70 #701C2A #54701C #1C7062
split-complementary
#381C70 #70621C #2A701C
monochromatic
#0C0618 #20103F #381C70 #5028A1 #6A39CD

Accessibility & contrast

On white

13.39
#381C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C70
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C70#FFFFFF#000000##FFFFFF
##381C701.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#263244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381c70;
/* rgb */ color: rgb(56, 28, 112);
/* oklch */ color: oklch(32.0% 0.135 292.3);
Tailwind
colors: {
  custom: {
    50: '#755b9a',
    500: '#381c70',
    950: '#000000',
  },
}
SCSS
$custom: #381c70;
$custom-light: #755b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#381c70",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.13526,
    "h": 292.3
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#381C70
secondary
#84A543
accent
#E345AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C70

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

Preview Lab → · Contrast checker → · Palette generator →

#381C70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva