#381F76#381F76

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

Color values

HEX#381F76
RGBrgb(56, 31, 118)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 74%, 46%)
CMYKcmyk(52.5%, 73.7%, 0%, 53.7%)
CIE-LABlab(20.55, 34.55, -45.63)
CIE-LCHlch(20.55, 57.23, 307.13°)
OKLaboklab(33.03% 0.047 -0.131)
OKLCHoklch(33.03% 0.139 289.7)
XYZxyz(5.3899, 3.1285, 17.4559)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F76 #5D761F
analogous
#1F3276 #381F76 #641F76
triadic
#381F76 #76381F #1F7638
tetradic
#381F76 #761F32 #5D761F #1F7664
square
#381F76 #761F32 #5D761F #1F7664
split-complementary
#381F76 #76641F #32761F
monochromatic
#0C0618 #211246 #381F76 #4F2CA6 #6A42CD

Accessibility & contrast

On white

12.92
#381F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F76
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F76#FFFFFF#000000##FFFFFF
##381F761.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#223648
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381f76;
/* rgb */ color: rgb(56, 31, 118);
/* oklch */ color: oklch(33.0% 0.139 289.7);
Tailwind
colors: {
  custom: {
    50: '#755d9e',
    500: '#381f76',
    950: '#000000',
  },
}
SCSS
$custom: #381f76;
$custom-light: #755d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381f76",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 257.241,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.13915,
    "h": 289.7
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#381F76
secondary
#8DAA47
accent
#E246B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F76

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

Preview Lab → · Contrast checker → · Palette generator →

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