#381C8C#381C8C

#381C8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 284.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#381C8C
RGBrgb(56, 28, 140)
HSLhsl(255, 67%, 33%)
HSVhsv(255, 80%, 55%)
CMYKcmyk(60%, 80%, 0%, 45.1%)
CIE-LABlab(22.18, 42.80, -56.87)
CIE-LCHlch(22.18, 71.18, 306.96°)
OKLaboklab(34.84% 0.0435 -0.1639)
OKLCHoklch(34.84% 0.17 284.9)
XYZxyz(6.7783, 3.5643, 25.1367)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C8C #708C1C
analogous
#1C388C #381C8C #701C8C
triadic
#381C8C #8C381C #1C8C38
tetradic
#381C8C #8C1C38 #708C1C #1C8C70
square
#381C8C #8C1C38 #708C1C #1C8C70
split-complementary
#381C8C #8C701C #388C1C
monochromatic
#0F0826 #241259 #381C8C #4C26BF #6D48DA

Accessibility & contrast

On white

12.26
#381C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C8C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C8C#FFFFFF#000000##FFFFFF
##381C8C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#063D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381c8c;
/* rgb */ color: rgb(56, 28, 140);
/* oklch */ color: oklch(34.8% 0.170 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a5caf',
    500: '#381c8c',
    950: '#000000',
  },
}
SCSS
$custom: #381c8c;
$custom-light: #7a5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#381c8c",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.16956,
    "h": 284.9
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#381C8C
secondary
#9FBC48
accent
#EA3EBF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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