#381B73#381B73

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

Color values

HEX#381B73
RGBrgb(56, 27, 115)
HSLhsl(260, 62%, 28%)
HSVhsv(260, 77%, 45%)
CMYKcmyk(51.3%, 76.5%, 0%, 54.9%)
CIE-LABlab(19.48, 35.85, -45.45)
CIE-LCHlch(19.48, 57.88, 308.26°)
OKLaboklab(32.19% 0.0515 -0.1304)
OKLCHoklch(32.19% 0.14 291.6)
XYZxyz(5.1165, 2.8622, 16.4992)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B73 #56731B
analogous
#1B2A73 #381B73 #641B73
triadic
#381B73 #73381B #1B7338
tetradic
#381B73 #731B2A #56731B #1B7364
square
#381B73 #731B2A #56731B #1B7364
split-complementary
#381B73 #73641B #2A731B
monochromatic
#0C0619 #200F41 #381B73 #5027A5 #6A38D0

Accessibility & contrast

On white

13.36
#381B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B73
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B73#FFFFFF#000000##FFFFFF
##381B731.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#253245
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381b73;
/* rgb */ color: rgb(56, 27, 115);
/* oklch */ color: oklch(32.2% 0.140 291.6);
Tailwind
colors: {
  custom: {
    50: '#755a9c',
    500: '#381b73',
    950: '#000000',
  },
}
SCSS
$custom: #381b73;
$custom-light: #755a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#381b73",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 259.773,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32187,
    "c": 0.14023,
    "h": 291.6
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#381B73
secondary
#86A842
accent
#E543B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B73

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

Preview Lab → · Contrast checker → · Palette generator →

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