#381E8D#381E8D

#381E8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.169 H 284.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#381E8D
RGBrgb(56, 30, 141)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(60.3%, 78.7%, 0%, 44.7%)
CIE-LABlab(22.63, 42.11, -56.75)
CIE-LCHlch(22.63, 70.67, 306.57°)
OKLaboklab(35.18% 0.0419 -0.1635)
OKLCHoklch(35.18% 0.169 284.4)
XYZxyz(6.9014, 3.6919, 25.5431)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8D #738D1E
analogous
#1E3B8D #381E8D #6F1E8D
triadic
#381E8D #8D381E #1E8D38
tetradic
#381E8D #8D1E3B #738D1E #1E8D6F
square
#381E8D #8D1E3B #738D1E #1E8D6F
split-complementary
#381E8D #8D6F1E #3B8D1E
monochromatic
#100928 #24135B #381E8D #4C29BF #6D4CD9

Accessibility & contrast

On white

12.08
#381E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E8D
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8D#FFFFFF#000000##FFFFFF
##381E8D1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#033E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381e8d;
/* rgb */ color: rgb(56, 30, 141);
/* oklch */ color: oklch(35.2% 0.169 284.4);
Tailwind
colors: {
  custom: {
    50: '#7a5eaf',
    500: '#381e8d',
    950: '#000000',
  },
}
SCSS
$custom: #381e8d;
$custom-light: #7a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8d",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 254.054,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35182,
    "c": 0.16881,
    "h": 284.4
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#381E8D
secondary
#A1BC4B
accent
#E840C1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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