#381784#381784

#381784 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.165 H 287.5°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#381784
RGBrgb(56, 23, 132)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 83%, 52%)
CMYKcmyk(57.6%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.52, 42.80, -54.59)
CIE-LCHlch(20.52, 69.37, 308.10°)
OKLaboklab(33.43% 0.0495 -0.1572)
OKLCHoklch(33.43% 0.165 287.5)
XYZxyz(6.1009, 3.1192, 22.1059)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381784 #638417
analogous
#172C84 #381784 #6E1784
triadic
#381784 #843817 #178438
tetradic
#381784 #84172C #638417 #17846E
square
#381784 #84172C #638417 #17846E
split-complementary
#381784 #846E17 #2C8417
monochromatic
#0C051C #220E50 #381784 #4E20B8 #6A39DC

Accessibility & contrast

On white

12.93
#381784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381784
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381784#FFFFFF#000000##FFFFFF
##3817841.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#15384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381784;
/* rgb */ color: rgb(56, 23, 132);
/* oklch */ color: oklch(33.4% 0.165 287.5);
Tailwind
colors: {
  custom: {
    50: '#7959a9',
    500: '#381784',
    950: '#000000',
  },
}
SCSS
$custom: #381784;
$custom-light: #7959a9;
$custom-dark: #000000;
JSON
{
  "hex": "#381784",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 258.165,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.16476,
    "h": 287.5
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#381784
secondary
#93B83F
accent
#ED3BB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381784

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

Preview Lab → · Contrast checker → · Palette generator →

#381784 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva