#381E7E#381E7E

#381E7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.150 H 287.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#381E7E
RGBrgb(56, 30, 126)
HSLhsl(256, 62%, 31%)
HSVhsv(256, 76%, 49%)
CMYKcmyk(55.6%, 76.2%, 0%, 50.6%)
CIE-LABlab(21.11, 37.55, -49.81)
CIE-LCHlch(21.11, 62.38, 307.01°)
OKLaboklab(33.66% 0.046 -0.1432)
OKLCHoklch(33.66% 0.15 287.8)
XYZxyz(5.8599, 3.2754, 20.0581)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7E #647E1E
analogous
#1E347E #381E7E #681E7E
triadic
#381E7E #7E381E #1E7E38
tetradic
#381E7E #7E1E34 #647E1E #1E7E68
square
#381E7E #7E1E34 #647E1E #1E7E68
split-complementary
#381E7E #7E681E #347E1E
monochromatic
#0C061B #22124D #381E7E #4E2AAF #6B44D2

Accessibility & contrast

On white

12.69
#381E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E7E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7E#FFFFFF#000000##FFFFFF
##381E7E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#1C384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381e7e;
/* rgb */ color: rgb(56, 30, 126);
/* oklch */ color: oklch(33.7% 0.150 287.8);
Tailwind
colors: {
  custom: {
    50: '#775da4',
    500: '#381e7e',
    950: '#000000',
  },
}
SCSS
$custom: #381e7e;
$custom-light: #775da4;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7e",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 256.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33663,
    "c": 0.15044,
    "h": 287.8
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#381E7E
secondary
#94B147
accent
#E543B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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