#381E8E#381E8E

#381E8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.170 H 284.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#381E8E
RGBrgb(56, 30, 142)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 56%)
CMYKcmyk(60.6%, 78.9%, 0%, 44.3%)
CIE-LABlab(22.73, 42.41, -57.20)
CIE-LCHlch(22.73, 71.21, 306.55°)
OKLaboklab(35.29% 0.0416 -0.1649)
OKLCHoklch(35.29% 0.17 284.2)
XYZxyz(6.9761, 3.7218, 25.9367)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8E #748E1E
analogous
#1E3C8E #381E8E #701E8E
triadic
#381E8E #8E381E #1E8E38
tetradic
#381E8E #8E1E3C #748E1E #1E8E70
square
#381E8E #8E1E3C #748E1E #1E8E70
split-complementary
#381E8E #8E701E #3C8E1E
monochromatic
#100929 #24135B #381E8E #4C29C1 #6E4DD9

Accessibility & contrast

On white

12.04
#381E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#381E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E8E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8E#FFFFFF#000000##FFFFFF
##381E8E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#013E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381e8e;
/* rgb */ color: rgb(56, 30, 142);
/* oklch */ color: oklch(35.3% 0.170 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a5eb0',
    500: '#381e8e',
    950: '#000000',
  },
}
SCSS
$custom: #381e8e;
$custom-light: #7a5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8e",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 253.929,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.17002,
    "h": 284.2
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#381E8E
secondary
#A2BC4C
accent
#E840C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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