#381371#381371

#381371 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 293.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#381371
RGBrgb(56, 19, 113)
HSLhsl(264, 71%, 26%)
HSVhsv(264, 83%, 44%)
CMYKcmyk(50.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(17.91, 39.20, -46.73)
CIE-LCHlch(17.91, 61.00, 309.99°)
OKLaboklab(31.03% 0.059 -0.1341)
OKLCHoklch(31.03% 0.147 293.7)
XYZxyz(4.8436, 2.4986, 15.8467)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381371 #4C7113
analogous
#131D71 #381371 #671371
triadic
#381371 #713813 #137138
tetradic
#381371 #71131D #4C7113 #137167
square
#381371 #71131D #4C7113 #137167
split-complementary
#381371 #716713 #1D7113
monochromatic
#0D041A #1E0A3D #381371 #521CA5 #6C25DA

Accessibility & contrast

On white

14.00
#381371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381371
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381371#FFFFFF#000000##FFFFFF
##3813711.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#262E42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381371;
/* rgb */ color: rgb(56, 19, 113);
/* oklch */ color: oklch(31.0% 0.147 293.7);
Tailwind
colors: {
  custom: {
    50: '#76569b',
    500: '#381371',
    950: '#000000',
  },
}
SCSS
$custom: #381371;
$custom-light: #76569b;
$custom-dark: #000000;
JSON
{
  "hex": "#381371",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 263.617,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.14652,
    "h": 293.7
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#381371
secondary
#7CA838
accent
#EE3AA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381371

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

Preview Lab → · Contrast checker → · Palette generator →

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