#381985#381985

#381985 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.164 H 286.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#381985
RGBrgb(56, 25, 133)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 52%)
CMYKcmyk(57.9%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.94, 42.17, -54.52)
CIE-LCHlch(20.94, 68.93, 307.72°)
OKLaboklab(33.76% 0.0478 -0.157)
OKLCHoklch(33.76% 0.164 286.9)
XYZxyz(6.2109, 3.2291, 22.4818)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381985 #668519
analogous
#193085 #381985 #6E1985
triadic
#381985 #853819 #198538
tetradic
#381985 #851930 #668519 #19856E
square
#381985 #851930 #668519 #19856E
split-complementary
#381985 #856E19 #308519
monochromatic
#0D061E #220F51 #381985 #4E23B9 #6B3EDB

Accessibility & contrast

On white

12.76
#381985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381985
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381985#FFFFFF#000000##FFFFFF
##3819851.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#14394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381985;
/* rgb */ color: rgb(56, 25, 133);
/* oklch */ color: oklch(33.8% 0.164 286.9);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#381985',
    950: '#000000',
  },
}
SCSS
$custom: #381985;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#381985",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 257.222,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33755,
    "c": 0.16409,
    "h": 286.9
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#381985
secondary
#96B941
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381985

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

Preview Lab → · Contrast checker → · Palette generator →

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