#381E76#381E76

#381E76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.140 H 290.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#381E76
RGBrgb(56, 30, 118)
HSLhsl(258, 59%, 29%)
HSVhsv(258, 75%, 46%)
CMYKcmyk(52.5%, 74.6%, 0%, 53.7%)
CIE-LABlab(20.35, 35.11, -45.96)
CIE-LCHlch(20.35, 57.83, 307.38°)
OKLaboklab(32.89% 0.0479 -0.1319)
OKLCHoklch(32.89% 0.14 290)
XYZxyz(5.3642, 3.0771, 17.4473)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E76 #5C761E
analogous
#1E3076 #381E76 #641E76
triadic
#381E76 #76381E #1E7638
tetradic
#381E76 #761E30 #5C761E #1E7664
square
#381E76 #761E30 #5C761E #1E7664
split-complementary
#381E76 #76641E #30761E
monochromatic
#0C0618 #211245 #381E76 #4F2AA7 #6A40CE

Accessibility & contrast

On white

13.00
#381E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E76
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E76#FFFFFF#000000##FFFFFF
##381E761.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#223548
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381e76;
/* rgb */ color: rgb(56, 30, 118);
/* oklch */ color: oklch(32.9% 0.140 290.0);
Tailwind
colors: {
  custom: {
    50: '#765c9e',
    500: '#381e76',
    950: '#000000',
  },
}
SCSS
$custom: #381e76;
$custom-light: #765c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381e76",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 257.727,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32888,
    "c": 0.14038,
    "h": 290
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#381E76
secondary
#8CAA46
accent
#E345B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E76

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

Preview Lab → · Contrast checker → · Palette generator →

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