#381C5A#381C5A

#381C5A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.107 H 300.9°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#381C5A
RGBrgb(56, 28, 90)
HSLhsl(267, 53%, 23%)
HSVhsv(267, 69%, 35%)
CMYKcmyk(37.8%, 68.9%, 0%, 64.7%)
CIE-LABlab(17.50, 27.91, -32.26)
CIE-LCHlch(17.50, 42.66, 310.87°)
OKLaboklab(30.09% 0.0549 -0.0917)
OKLCHoklch(30.09% 0.107 300.9)
XYZxyz(3.8912, 2.4094, 9.9309)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C5A #3E5A1C
analogous
#1C1F5A #381C5A #571C5A
triadic
#381C5A #5A381C #1C5A38
tetradic
#381C5A #5A1C1F #3E5A1C #1C5A57
square
#381C5A #5A1C1F #3E5A1C #1C5A57
split-complementary
#381C5A #5A571C #1F5A1C
monochromatic
#0F0717 #1B0D2B #381C5A #552B89 #7239B7

Accessibility & contrast

On white

14.17
#381C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C5A
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C5A#FFFFFF#000000##FFFFFF
##381C5A1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#042B59
Tritanopia (blue-blind)
#312A38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381c5a;
/* rgb */ color: rgb(56, 28, 90);
/* oklch */ color: oklch(30.1% 0.107 300.9);
Tailwind
colors: {
  custom: {
    50: '#725a89',
    500: '#381c5a',
    950: '#000000',
  },
}
SCSS
$custom: #381c5a;
$custom-light: #725a89;
$custom-dark: #000000;
JSON
{
  "hex": "#381c5a",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 267.097,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30092,
    "c": 0.10687,
    "h": 300.9
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#381C5A
secondary
#6D8F42
accent
#DC4C9B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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