#381C8B#381C8B

#381C8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.168 H 285.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#381C8B
RGBrgb(56, 28, 139)
HSLhsl(255, 66%, 33%)
HSVhsv(255, 80%, 55%)
CMYKcmyk(59.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.07, 42.50, -56.42)
CIE-LCHlch(22.07, 70.64, 306.99°)
OKLaboklab(34.73% 0.0439 -0.1625)
OKLCHoklch(34.73% 0.168 285.1)
XYZxyz(6.7049, 3.5349, 24.7501)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C8B #6F8B1C
analogous
#1C388B #381C8B #6F1C8B
triadic
#381C8B #8B381C #1C8B38
tetradic
#381C8B #8B1C38 #6F8B1C #1C8B6F
square
#381C8B #8B1C38 #6F8B1C #1C8B6F
split-complementary
#381C8B #8B6F1C #388B1C
monochromatic
#0F0725 #231258 #381C8B #4D26BE #6C47DA

Accessibility & contrast

On white

12.30
#381C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C8B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C8B#FFFFFF#000000##FFFFFF
##381C8B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#093C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381c8b;
/* rgb */ color: rgb(56, 28, 139);
/* oklch */ color: oklch(34.7% 0.168 285.1);
Tailwind
colors: {
  custom: {
    50: '#795cae',
    500: '#381c8b',
    950: '#000000',
  },
}
SCSS
$custom: #381c8b;
$custom-light: #795cae;
$custom-dark: #000000;
JSON
{
  "hex": "#381c8b",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 255.135,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.16836,
    "h": 285.1
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#381C8B
secondary
#9EBC47
accent
#E93EBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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