#381C5F#381C5F

#381C5F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.113 H 298.6°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#381C5F
RGBrgb(56, 28, 95)
HSLhsl(265, 54%, 24%)
HSVhsv(265, 71%, 37%)
CMYKcmyk(41.1%, 70.5%, 0%, 62.7%)
CIE-LABlab(17.91, 29.36, -34.94)
CIE-LCHlch(17.91, 45.64, 310.04°)
OKLaboklab(30.51% 0.0544 -0.0996)
OKLCHoklch(30.51% 0.113 298.6)
XYZxyz(4.1112, 2.4974, 11.0897)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C5F #435F1C
analogous
#1C215F #381C5F #5A1C5F
triadic
#381C5F #5F381C #1C5F38
tetradic
#381C5F #5F1C21 #435F1C #1C5F5A
square
#381C5F #5F1C21 #435F1C #1C5F5A
split-complementary
#381C5F #5F5A1C #215F1C
monochromatic
#0E0718 #1C0E30 #381C5F #542A8E #7038BE

Accessibility & contrast

On white

14.01
#381C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C5F
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C5F#FFFFFF#000000##FFFFFF
##381C5F1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#2F2B3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381c5f;
/* rgb */ color: rgb(56, 28, 95);
/* oklch */ color: oklch(30.5% 0.113 298.6);
Tailwind
colors: {
  custom: {
    50: '#725a8d',
    500: '#381c5f',
    950: '#000000',
  },
}
SCSS
$custom: #381c5f;
$custom-light: #725a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#381c5f",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 265.075,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3051,
    "c": 0.11343,
    "h": 298.6
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#381C5F
secondary
#729442
accent
#DE4AA0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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