#381C72#381C72

#381C72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.138 H 291.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#381C72
RGBrgb(56, 28, 114)
HSLhsl(260, 61%, 28%)
HSVhsv(260, 75%, 45%)
CMYKcmyk(50.9%, 75.4%, 0%, 55.3%)
CIE-LABlab(19.58, 35.00, -44.64)
CIE-LCHlch(19.58, 56.73, 308.10°)
OKLaboklab(32.23% 0.0508 -0.1281)
OKLCHoklch(32.23% 0.138 291.6)
XYZxyz(5.0825, 2.8860, 16.2056)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C72 #56721C
analogous
#1C2B72 #381C72 #631C72
triadic
#381C72 #72381C #1C7238
tetradic
#381C72 #721C2B #56721C #1C7263
square
#381C72 #721C2B #56721C #1C7263
split-complementary
#381C72 #72631C #2B721C
monochromatic
#0C0619 #201041 #381C72 #5028A3 #6A3ACF

Accessibility & contrast

On white

13.31
#381C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C72
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C72#FFFFFF#000000##FFFFFF
##381C721.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#253345
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381c72;
/* rgb */ color: rgb(56, 28, 114);
/* oklch */ color: oklch(32.2% 0.138 291.6);
Tailwind
colors: {
  custom: {
    50: '#755b9b',
    500: '#381c72',
    950: '#000000',
  },
}
SCSS
$custom: #381c72;
$custom-light: #755b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381c72",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 259.535,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32227,
    "c": 0.13778,
    "h": 291.6
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#381C72
secondary
#86A643
accent
#E444B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C72

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

Preview Lab → · Contrast checker → · Palette generator →

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