#381E73#381E73

#381E73 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.137 H 290.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#381E73
RGBrgb(56, 30, 115)
HSLhsl(258, 59%, 28%)
HSVhsv(258, 74%, 45%)
CMYKcmyk(51.3%, 73.9%, 0%, 54.9%)
CIE-LABlab(20.07, 34.20, -44.49)
CIE-LCHlch(20.07, 56.11, 307.55°)
OKLaboklab(32.6% 0.0486 -0.1276)
OKLCHoklch(32.6% 0.137 290.8)
XYZxyz(5.1888, 3.0069, 16.5233)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E73 #59731E
analogous
#1E2E73 #381E73 #621E73
triadic
#381E73 #73381E #1E7338
tetradic
#381E73 #731E2E #59731E #1E7362
square
#381E73 #731E2E #59731E #1E7362
split-complementary
#381E73 #73621E #2E731E
monochromatic
#0C0618 #201142 #381E73 #502BA4 #6A3FCD

Accessibility & contrast

On white

13.11
#381E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E73
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E73#FFFFFF#000000##FFFFFF
##381E731.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#243446
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381e73;
/* rgb */ color: rgb(56, 30, 115);
/* oklch */ color: oklch(32.6% 0.137 290.8);
Tailwind
colors: {
  custom: {
    50: '#755c9c',
    500: '#381e73',
    950: '#000000',
  },
}
SCSS
$custom: #381e73;
$custom-light: #755c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#381e73",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 115
  },
  "hsl": {
    "h": 258.353,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32604,
    "c": 0.13656,
    "h": 290.8
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#381E73
secondary
#89A746
accent
#E246B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E73

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

Preview Lab → · Contrast checker → · Palette generator →

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