#381E8C#381E8C

#381E8C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.168 H 284.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#381E8C
RGBrgb(56, 30, 140)
HSLhsl(254, 65%, 33%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(60%, 78.6%, 0%, 45.1%)
CIE-LABlab(22.52, 41.80, -56.30)
CIE-LCHlch(22.52, 70.12, 306.59°)
OKLaboklab(35.08% 0.0422 -0.1622)
OKLCHoklch(35.08% 0.168 284.6)
XYZxyz(6.8273, 3.6623, 25.1530)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8C #728C1E
analogous
#1E3B8C #381E8C #6F1E8C
triadic
#381E8C #8C381E #1E8C38
tetradic
#381E8C #8C1E3B #728C1E #1E8C6F
square
#381E8C #8C1E3B #728C1E #1E8C6F
split-complementary
#381E8C #8C6F1E #3B8C1E
monochromatic
#100827 #24135A #381E8C #4C29BE #6D4CD9

Accessibility & contrast

On white

12.12
#381E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E8C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8C#FFFFFF#000000##FFFFFF
##381E8C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#063E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381e8c;
/* rgb */ color: rgb(56, 30, 140);
/* oklch */ color: oklch(35.1% 0.168 284.6);
Tailwind
colors: {
  custom: {
    50: '#7a5daf',
    500: '#381e8c',
    950: '#000000',
  },
}
SCSS
$custom: #381e8c;
$custom-light: #7a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8c",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 254.182,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.16761,
    "h": 284.6
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#381E8C
secondary
#A1BB4B
accent
#E840C0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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