#381E7F#381E7F

#381E7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.152 H 287.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#381E7F
RGBrgb(56, 30, 127)
HSLhsl(256, 62%, 31%)
HSVhsv(256, 76%, 50%)
CMYKcmyk(55.9%, 76.4%, 0%, 50.2%)
CIE-LABlab(21.21, 37.85, -50.28)
CIE-LCHlch(21.21, 62.94, 306.97°)
OKLaboklab(33.76% 0.0458 -0.1446)
OKLCHoklch(33.76% 0.152 287.6)
XYZxyz(5.9248, 3.3013, 20.3996)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7F #657F1E
analogous
#1E357F #381E7F #681E7F
triadic
#381E7F #7F381E #1E7F38
tetradic
#381E7F #7F1E35 #657F1E #1E7F68
square
#381E7F #7F1E35 #657F1E #1E7F68
split-complementary
#381E7F #7F681E #357F1E
monochromatic
#0C071C #22124D #381E7F #4E2AB1 #6B44D3

Accessibility & contrast

On white

12.65
#381E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E7F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7F#FFFFFF#000000##FFFFFF
##381E7F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#1B394D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381e7f;
/* rgb */ color: rgb(56, 30, 127);
/* oklch */ color: oklch(33.8% 0.152 287.6);
Tailwind
colors: {
  custom: {
    50: '#775da5',
    500: '#381e7f',
    950: '#000000',
  },
}
SCSS
$custom: #381e7f;
$custom-light: #775da5;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7f",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 256.082,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.15168,
    "h": 287.6
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#381E7F
secondary
#95B247
accent
#E543B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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