#381C74#381C74

#381C74 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.140 H 291.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#381C74
RGBrgb(56, 28, 116)
HSLhsl(259, 61%, 28%)
HSVhsv(259, 76%, 45%)
CMYKcmyk(51.7%, 75.9%, 0%, 54.5%)
CIE-LABlab(19.77, 35.60, -45.62)
CIE-LCHlch(19.77, 57.87, 307.97°)
OKLaboklab(32.42% 0.0503 -0.1309)
OKLCHoklch(32.42% 0.14 291)
XYZxyz(5.1976, 2.9320, 16.8117)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C74 #58741C
analogous
#1C2C74 #381C74 #641C74
triadic
#381C74 #74381C #1C7438
tetradic
#381C74 #741C2C #58741C #1C7464
square
#381C74 #741C2C #58741C #1C7464
split-complementary
#381C74 #74641C #2C741C
monochromatic
#0C0619 #201043 #381C74 #5028A5 #6A3BD0

Accessibility & contrast

On white

13.24
#381C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C74
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C74#FFFFFF#000000##FFFFFF
##381C741.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#243346
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381c74;
/* rgb */ color: rgb(56, 28, 116);
/* oklch */ color: oklch(32.4% 0.140 291.0);
Tailwind
colors: {
  custom: {
    50: '#755b9d',
    500: '#381c74',
    950: '#000000',
  },
}
SCSS
$custom: #381c74;
$custom-light: #755b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#381c74",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 259.091,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32418,
    "c": 0.14029,
    "h": 291
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#381C74
secondary
#88A843
accent
#E444B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C74

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

Preview Lab → · Contrast checker → · Palette generator →

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