#381972#381972

#381972 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.141 H 292.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#381972
RGBrgb(56, 25, 114)
HSLhsl(261, 64%, 27%)
HSVhsv(261, 78%, 45%)
CMYKcmyk(50.9%, 78.1%, 0%, 55.3%)
CIE-LABlab(19.02, 36.60, -45.57)
CIE-LCHlch(19.02, 58.45, 308.77°)
OKLaboklab(31.83% 0.0536 -0.1308)
OKLCHoklch(31.83% 0.141 292.3)
XYZxyz(5.0149, 2.7507, 16.1830)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381972 #537219
analogous
#192672 #381972 #651972
triadic
#381972 #723819 #197238
tetradic
#381972 #721926 #537219 #197265
square
#381972 #721926 #537219 #197265
split-complementary
#381972 #726519 #267219
monochromatic
#0C0619 #1F0E40 #381972 #5124A4 #6B33D2

Accessibility & contrast

On white

13.55
#381972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381972
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381972#FFFFFF#000000##FFFFFF
##3819721.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#253144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381972;
/* rgb */ color: rgb(56, 25, 114);
/* oklch */ color: oklch(31.8% 0.141 292.3);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#381972',
    950: '#000000',
  },
}
SCSS
$custom: #381972;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#381972",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 260.899,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31829,
    "c": 0.14133,
    "h": 292.3
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#381972
secondary
#83A740
accent
#E741AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381972

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

Preview Lab → · Contrast checker → · Palette generator →

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