#381983#381983

#381983 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.162 H 287.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#381983
RGBrgb(56, 25, 131)
HSLhsl(258, 68%, 31%)
HSVhsv(258, 81%, 51%)
CMYKcmyk(57.3%, 80.9%, 0%, 48.6%)
CIE-LABlab(20.73, 41.59, -53.61)
CIE-LCHlch(20.73, 67.85, 307.80°)
OKLaboklab(33.55% 0.0485 -0.1543)
OKLCHoklch(33.55% 0.162 287.4)
XYZxyz(6.0740, 3.1744, 21.7610)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381983 #648319
analogous
#192F83 #381983 #6D1983
triadic
#381983 #833819 #198338
tetradic
#381983 #83192F #648319 #19836D
square
#381983 #83192F #648319 #19836D
split-complementary
#381983 #836D19 #2F8319
monochromatic
#0C051C #220F50 #381983 #4E23B6 #6B3DDA

Accessibility & contrast

On white

12.84
#381983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381983
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381983#FFFFFF#000000##FFFFFF
##3819831.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#17384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381983;
/* rgb */ color: rgb(56, 25, 131);
/* oklch */ color: oklch(33.5% 0.162 287.4);
Tailwind
colors: {
  custom: {
    50: '#785aa8',
    500: '#381983',
    950: '#000000',
  },
}
SCSS
$custom: #381983;
$custom-light: #785aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#381983",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 257.547,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.16173,
    "h": 287.4
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#381983
secondary
#94B741
accent
#EB3DB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381983

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

Preview Lab → · Contrast checker → · Palette generator →

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