#381981#381981

#381981 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.159 H 288.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#381981
RGBrgb(56, 25, 129)
HSLhsl(258, 68%, 30%)
HSVhsv(258, 81%, 51%)
CMYKcmyk(56.6%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.52, 41.00, -52.69)
CIE-LCHlch(20.52, 66.76, 307.89°)
OKLaboklab(33.34% 0.0491 -0.1516)
OKLCHoklch(33.34% 0.159 288)
XYZxyz(5.9398, 3.1207, 21.0540)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381981 #628119
analogous
#192E81 #381981 #6C1981
triadic
#381981 #813819 #198138
tetradic
#381981 #81192E #628119 #19816C
square
#381981 #81192E #628119 #19816C
split-complementary
#381981 #816C19 #2E8119
monochromatic
#0B051A #220F4E #381981 #4E23B4 #6A3BD9

Accessibility & contrast

On white

12.93
#381981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381981
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381981#FFFFFF#000000##FFFFFF
##3819811.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#19374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381981;
/* rgb */ color: rgb(56, 25, 129);
/* oklch */ color: oklch(33.3% 0.159 288.0);
Tailwind
colors: {
  custom: {
    50: '#785aa7',
    500: '#381981',
    950: '#000000',
  },
}
SCSS
$custom: #381981;
$custom-light: #785aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#381981",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 257.885,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33338,
    "c": 0.15937,
    "h": 288
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#381981
secondary
#92B541
accent
#EA3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381981

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

Preview Lab → · Contrast checker → · Palette generator →

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