#381794#381794

#381794 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.183 H 283.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#381794
RGBrgb(56, 23, 148)
HSLhsl(256, 73%, 34%)
HSVhsv(256, 84%, 58%)
CMYKcmyk(62.2%, 84.5%, 0%, 42%)
CIE-LABlab(22.27, 47.39, -61.68)
CIE-LCHlch(22.27, 77.78, 307.53°)
OKLaboklab(35.16% 0.0438 -0.1778)
OKLCHoklch(35.16% 0.183 283.8)
XYZxyz(7.2809, 3.5912, 28.3207)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381794 #739417
analogous
#173494 #381794 #761794
triadic
#381794 #943817 #179438
tetradic
#381794 #941734 #739417 #179476
square
#381794 #941734 #739417 #179476
split-complementary
#381794 #947617 #349417
monochromatic
#10072A #240F5F #381794 #4C1FC9 #6D44E2

Accessibility & contrast

On white

12.22
#381794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381794
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381794#FFFFFF#000000##FFFFFF
##3817941.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381794;
/* rgb */ color: rgb(56, 23, 148);
/* oklch */ color: oklch(35.2% 0.183 283.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ab5',
    500: '#381794',
    950: '#000000',
  },
}
SCSS
$custom: #381794;
$custom-light: #7c5ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#381794",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 255.84,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35162,
    "c": 0.18314,
    "h": 283.8
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#381794
secondary
#A1C344
accent
#F038BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381794

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

Preview Lab → · Contrast checker → · Palette generator →

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