#381777#381777

#381777 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.150 H 291.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#381777
RGBrgb(56, 23, 119)
HSLhsl(261, 68%, 28%)
HSVhsv(261, 81%, 47%)
CMYKcmyk(52.9%, 80.7%, 0%, 53.3%)
CIE-LABlab(19.16, 39.05, -48.55)
CIE-LCHlch(19.16, 62.30, 308.81°)
OKLaboklab(32.08% 0.0538 -0.1395)
OKLCHoklch(32.08% 0.15 291.1)
XYZxyz(5.2661, 2.7852, 17.7093)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381777 #567717
analogous
#172677 #381777 #681777
triadic
#381777 #773817 #177738
tetradic
#381777 #771726 #567717 #177768
square
#381777 #771726 #567717 #177768
split-complementary
#381777 #776817 #267717
monochromatic
#0C051A #200D44 #381777 #5021AA #6A31D7

Accessibility & contrast

On white

13.49
#381777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381777
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381777#FFFFFF#000000##FFFFFF
##3817771.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#223247
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381777;
/* rgb */ color: rgb(56, 23, 119);
/* oklch */ color: oklch(32.1% 0.150 291.1);
Tailwind
colors: {
  custom: {
    50: '#76589f',
    500: '#381777',
    950: '#000000',
  },
}
SCSS
$custom: #381777;
$custom-light: #76589f;
$custom-dark: #000000;
JSON
{
  "hex": "#381777",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 260.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32082,
    "c": 0.14951,
    "h": 291.1
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#381777
secondary
#86AC3E
accent
#EA3DAF
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381777

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

Preview Lab → · Contrast checker → · Palette generator →

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