#381F82#381F82

#381F82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.154 H 286.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#381F82
RGBrgb(56, 31, 130)
HSLhsl(255, 61%, 32%)
HSVhsv(255, 76%, 51%)
CMYKcmyk(56.9%, 76.2%, 0%, 49%)
CIE-LABlab(21.70, 38.23, -51.38)
CIE-LCHlch(21.70, 64.05, 306.65°)
OKLaboklab(34.19% 0.0441 -0.1478)
OKLCHoklch(34.19% 0.154 286.6)
XYZxyz(6.1489, 3.4321, 21.4532)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F82 #69821F
analogous
#1F3782 #381F82 #6A1F82
triadic
#381F82 #82381F #1F8238
tetradic
#381F82 #821F37 #69821F #1F826A
square
#381F82 #821F37 #69821F #1F826A
split-complementary
#381F82 #826A1F #37821F
monochromatic
#0D071F #231351 #381F82 #4D2BB3 #6B48D3

Accessibility & contrast

On white

12.45
#381F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F82
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F82#FFFFFF#000000##FFFFFF
##381F821.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#173A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381f82;
/* rgb */ color: rgb(56, 31, 130);
/* oklch */ color: oklch(34.2% 0.154 286.6);
Tailwind
colors: {
  custom: {
    50: '#785da7',
    500: '#381f82',
    950: '#000000',
  },
}
SCSS
$custom: #381f82;
$custom-light: #785da7;
$custom-dark: #000000;
JSON
{
  "hex": "#381f82",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 255.152,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.1543,
    "h": 286.6
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#381F82
secondary
#99B548
accent
#E543BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F82

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

Preview Lab → · Contrast checker → · Palette generator →

#381F82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva