#381971#381971

#381971 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.140 H 292.6°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#381971
RGBrgb(56, 25, 113)
HSLhsl(261, 64%, 27%)
HSVhsv(261, 78%, 44%)
CMYKcmyk(50.4%, 77.9%, 0%, 55.7%)
CIE-LABlab(18.92, 36.31, -45.08)
CIE-LCHlch(18.92, 57.88, 308.85°)
OKLaboklab(31.73% 0.0539 -0.1293)
OKLCHoklch(31.73% 0.14 292.6)
XYZxyz(4.9583, 2.7281, 15.8849)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381971 #527119
analogous
#192671 #381971 #641971
triadic
#381971 #713819 #197138
tetradic
#381971 #711926 #527119 #197164
square
#381971 #711926 #527119 #197164
split-complementary
#381971 #716419 #267119
monochromatic
#0C0619 #1F0E3F #381971 #5124A3 #6B33D2

Accessibility & contrast

On white

13.59
#381971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381971
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381971#FFFFFF#000000##FFFFFF
##3819711.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381971;
/* rgb */ color: rgb(56, 25, 113);
/* oklch */ color: oklch(31.7% 0.140 292.6);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#381971',
    950: '#000000',
  },
}
SCSS
$custom: #381971;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#381971",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 261.136,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31731,
    "c": 0.14011,
    "h": 292.6
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#381971
secondary
#82A640
accent
#E741AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381971

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

Preview Lab → · Contrast checker → · Palette generator →

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