#381D8A#381D8A

#381D8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.166 H 285.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#381D8A
RGBrgb(56, 29, 138)
HSLhsl(255, 65%, 33%)
HSVhsv(255, 79%, 54%)
CMYKcmyk(59.4%, 79%, 0%, 45.9%)
CIE-LABlab(22.14, 41.70, -55.68)
CIE-LCHlch(22.14, 69.57, 306.83°)
OKLaboklab(34.75% 0.0435 -0.1604)
OKLCHoklch(34.75% 0.166 285.2)
XYZxyz(6.6563, 3.5541, 24.3751)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D8A #6F8A1D
analogous
#1D398A #381D8A #6E1D8A
triadic
#381D8A #8A381D #1D8A38
tetradic
#381D8A #8A1D39 #6F8A1D #1D8A6E
square
#381D8A #8A1D39 #6F8A1D #1D8A6E
split-complementary
#381D8A #8A6E1D #398A1D
monochromatic
#0F0825 #231257 #381D8A #4D28BD #6C49D9

Accessibility & contrast

On white

12.27
#381D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D8A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D8A#FFFFFF#000000##FFFFFF
##381D8A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#0B3C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381d8a;
/* rgb */ color: rgb(56, 29, 138);
/* oklch */ color: oklch(34.7% 0.166 285.2);
Tailwind
colors: {
  custom: {
    50: '#795dad',
    500: '#381d8a',
    950: '#000000',
  },
}
SCSS
$custom: #381d8a;
$custom-light: #795dad;
$custom-dark: #000000;
JSON
{
  "hex": "#381d8a",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 254.862,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34748,
    "c": 0.16619,
    "h": 285.2
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#381D8A
secondary
#9EBB48
accent
#E840BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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