#381E77#381E77

#381E77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.142 H 289.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#381E77
RGBrgb(56, 30, 119)
HSLhsl(258, 60%, 29%)
HSVhsv(258, 75%, 47%)
CMYKcmyk(52.9%, 74.8%, 0%, 53.3%)
CIE-LABlab(20.44, 35.41, -46.45)
CIE-LCHlch(20.44, 58.41, 307.32°)
OKLaboklab(32.98% 0.0477 -0.1334)
OKLCHoklch(32.98% 0.142 289.7)
XYZxyz(5.4240, 3.1010, 17.7619)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E77 #5D771E
analogous
#1E3177 #381E77 #651E77
triadic
#381E77 #77381E #1E7738
tetradic
#381E77 #771E31 #5D771E #1E7765
square
#381E77 #771E31 #5D771E #1E7765
split-complementary
#381E77 #77651E #31771E
monochromatic
#0C0618 #211246 #381E77 #4F2AA8 #6A40CF

Accessibility & contrast

On white

12.96
#381E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E77
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E77#FFFFFF#000000##FFFFFF
##381E771.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#223548
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381e77;
/* rgb */ color: rgb(56, 30, 119);
/* oklch */ color: oklch(33.0% 0.142 289.7);
Tailwind
colors: {
  custom: {
    50: '#765c9f',
    500: '#381e77',
    950: '#000000',
  },
}
SCSS
$custom: #381e77;
$custom-light: #765c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381e77",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 257.528,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32983,
    "c": 0.14165,
    "h": 289.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#381E77
secondary
#8DAB46
accent
#E345B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381E77

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

Preview Lab → · Contrast checker → · Palette generator →

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