#381C5D#381C5D

#381C5D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.111 H 299.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#381C5D
RGBrgb(56, 28, 93)
HSLhsl(266, 54%, 24%)
HSVhsv(266, 70%, 36%)
CMYKcmyk(39.8%, 69.9%, 0%, 63.5%)
CIE-LABlab(17.74, 28.78, -33.88)
CIE-LCHlch(17.74, 44.45, 310.35°)
OKLaboklab(30.34% 0.0546 -0.0964)
OKLCHoklch(30.34% 0.111 299.5)
XYZxyz(4.0214, 2.4615, 10.6171)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C5D #415D1C
analogous
#1C205D #381C5D #581C5D
triadic
#381C5D #5D381C #1C5D38
tetradic
#381C5D #5D1C20 #415D1C #1C5D58
square
#381C5D #5D1C20 #415D1C #1C5D58
split-complementary
#381C5D #5D581C #205D1C
monochromatic
#0E0718 #1C0E2E #381C5D #542A8C #7138BB

Accessibility & contrast

On white

14.07
#381C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C5D
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C5D#FFFFFF#000000##FFFFFF
##381C5D1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#302B39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381c5d;
/* rgb */ color: rgb(56, 28, 93);
/* oklch */ color: oklch(30.3% 0.111 299.5);
Tailwind
colors: {
  custom: {
    50: '#725a8b',
    500: '#381c5d',
    950: '#000000',
  },
}
SCSS
$custom: #381c5d;
$custom-light: #725a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#381c5d",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 265.846,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30341,
    "c": 0.11081,
    "h": 299.5
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#381C5D
secondary
#709242
accent
#DD4B9E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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