#381A71#381A71

#381A71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.139 H 292.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#381A71
RGBrgb(56, 26, 113)
HSLhsl(261, 63%, 27%)
HSVhsv(261, 77%, 44%)
CMYKcmyk(50.4%, 77%, 0%, 55.7%)
CIE-LABlab(19.10, 35.78, -44.78)
CIE-LCHlch(19.10, 57.32, 308.63°)
OKLaboklab(31.86% 0.053 -0.1284)
OKLCHoklch(31.86% 0.139 292.4)
XYZxyz(4.9801, 2.7716, 15.8922)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A71 #53711A
analogous
#1A2771 #381A71 #641A71
triadic
#381A71 #71381A #1A7138
tetradic
#381A71 #711A27 #53711A #1A7164
square
#381A71 #711A27 #53711A #1A7164
split-complementary
#381A71 #71641A #27711A
monochromatic
#0C0619 #1F0F3F #381A71 #5125A3 #6B35D0

Accessibility & contrast

On white

13.51
#381A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A71
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A71#FFFFFF#000000##FFFFFF
##381A711.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#263144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381a71;
/* rgb */ color: rgb(56, 26, 113);
/* oklch */ color: oklch(31.9% 0.139 292.4);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#381a71',
    950: '#000000',
  },
}
SCSS
$custom: #381a71;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381a71",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 260.69,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31861,
    "c": 0.13894,
    "h": 292.4
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#381A71
secondary
#83A641
accent
#E642AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A71

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

Preview Lab → · Contrast checker → · Palette generator →

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