#381571#381571

#381571 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.144 H 293.4°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#381571
RGBrgb(56, 21, 113)
HSLhsl(263, 69%, 26%)
HSVhsv(263, 81%, 44%)
CMYKcmyk(50.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(18.23, 38.28, -46.21)
CIE-LCHlch(18.23, 60.01, 309.64°)
OKLaboklab(31.25% 0.0574 -0.1326)
OKLCHoklch(31.25% 0.145 293.4)
XYZxyz(4.8789, 2.5692, 15.8584)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381571 #4E7115
analogous
#152071 #381571 #661571
triadic
#381571 #713815 #157138
tetradic
#381571 #711520 #4E7115 #157166
square
#381571 #711520 #4E7115 #157166
split-complementary
#381571 #716615 #207115
monochromatic
#0D051A #1E0B3D #381571 #521FA5 #6B29D7

Accessibility & contrast

On white

13.87
#381571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381571
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381571#FFFFFF#000000##FFFFFF
##3815711.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#262F43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381571;
/* rgb */ color: rgb(56, 21, 113);
/* oklch */ color: oklch(31.2% 0.144 293.4);
Tailwind
colors: {
  custom: {
    50: '#75579b',
    500: '#381571',
    950: '#000000',
  },
}
SCSS
$custom: #381571;
$custom-light: #75579b;
$custom-dark: #000000;
JSON
{
  "hex": "#381571",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 262.826,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31247,
    "c": 0.1445,
    "h": 293.4
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#381571
secondary
#7EA73B
accent
#EB3CA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381571

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

Preview Lab → · Contrast checker → · Palette generator →

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