#381F7A#381F7A

#381F7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.144 H 288.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#381F7A
RGBrgb(56, 31, 122)
HSLhsl(256, 59%, 30%)
HSVhsv(256, 75%, 48%)
CMYKcmyk(54.1%, 74.6%, 0%, 52.2%)
CIE-LABlab(20.93, 35.78, -47.57)
CIE-LCHlch(20.93, 59.52, 306.94°)
OKLaboklab(33.41% 0.0461 -0.1367)
OKLCHoklch(33.41% 0.144 288.6)
XYZxyz(5.6327, 3.2256, 18.7344)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F7A #617A1F
analogous
#1F337A #381F7A #661F7A
triadic
#381F7A #7A381F #1F7A38
tetradic
#381F7A #7A1F33 #617A1F #1F7A66
square
#381F7A #7A1F33 #617A1F #1F7A66
split-complementary
#381F7A #7A661F #337A1F
monochromatic
#0B0618 #221349 #381F7A #4E2BAB #6A44CF

Accessibility & contrast

On white

12.76
#381F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F7A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F7A#FFFFFF#000000##FFFFFF
##381F7A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#1F374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381f7a;
/* rgb */ color: rgb(56, 31, 122);
/* oklch */ color: oklch(33.4% 0.144 288.6);
Tailwind
colors: {
  custom: {
    50: '#765da1',
    500: '#381f7a',
    950: '#000000',
  },
}
SCSS
$custom: #381f7a;
$custom-light: #765da1;
$custom-dark: #000000;
JSON
{
  "hex": "#381f7a",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 256.484,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.14425,
    "h": 288.6
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#381F7A
secondary
#91AD47
accent
#E345B7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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