#381A72#381A72

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

Color values

HEX#381A72
RGBrgb(56, 26, 114)
HSLhsl(260, 63%, 27%)
HSVhsv(260, 77%, 45%)
CMYKcmyk(50.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(19.20, 36.08, -45.27)
CIE-LCHlch(19.20, 57.88, 308.56°)
OKLaboklab(31.96% 0.0527 -0.1299)
OKLCHoklch(31.96% 0.14 292.1)
XYZxyz(5.0367, 2.7943, 16.1903)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A72 #54721A
analogous
#1A2872 #381A72 #641A72
triadic
#381A72 #72381A #1A7238
tetradic
#381A72 #721A28 #54721A #1A7264
square
#381A72 #721A28 #54721A #1A7264
split-complementary
#381A72 #72641A #28721A
monochromatic
#0C0619 #200F40 #381A72 #5025A4 #6A35D1

Accessibility & contrast

On white

13.47
#381A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A72
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A72#FFFFFF#000000##FFFFFF
##381A721.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#253244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381a72;
/* rgb */ color: rgb(56, 26, 114);
/* oklch */ color: oklch(32.0% 0.140 292.1);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#381a72',
    950: '#000000',
  },
}
SCSS
$custom: #381a72;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381a72",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 260.455,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.14017,
    "h": 292.1
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#381A72
secondary
#84A741
accent
#E642AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A72

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

Preview Lab → · Contrast checker → · Palette generator →

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