#381F77#381F77

#381F77 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.140 H 289.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#381F77
RGBrgb(56, 31, 119)
HSLhsl(257, 59%, 29%)
HSVhsv(257, 74%, 47%)
CMYKcmyk(52.9%, 73.9%, 0%, 53.3%)
CIE-LABlab(20.64, 34.85, -46.12)
CIE-LCHlch(20.64, 57.81, 307.08°)
OKLaboklab(33.13% 0.0468 -0.1324)
OKLCHoklch(33.13% 0.14 289.4)
XYZxyz(5.4497, 3.1524, 17.7705)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F77 #5E771F
analogous
#1F3277 #381F77 #641F77
triadic
#381F77 #77381F #1F7738
tetradic
#381F77 #771F32 #5E771F #1F7764
square
#381F77 #771F32 #5E771F #1F7764
split-complementary
#381F77 #77641F #32771F
monochromatic
#0B0618 #211246 #381F77 #4F2CA8 #6A43CE

Accessibility & contrast

On white

12.88
#381F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F77
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F77#FFFFFF#000000##FFFFFF
##381F771.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#223649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381f77;
/* rgb */ color: rgb(56, 31, 119);
/* oklch */ color: oklch(33.1% 0.140 289.4);
Tailwind
colors: {
  custom: {
    50: '#765d9f',
    500: '#381f77',
    950: '#000000',
  },
}
SCSS
$custom: #381f77;
$custom-light: #765d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381f77",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 257.045,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33125,
    "c": 0.14043,
    "h": 289.4
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#381F77
secondary
#8EAB47
accent
#E246B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381F77

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

Preview Lab → · Contrast checker → · Palette generator →

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