#381F84#381F84

#381F84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.157 H 286.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#381F84
RGBrgb(56, 31, 132)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(57.6%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.89, 38.84, -52.32)
CIE-LCHlch(21.89, 65.16, 306.59°)
OKLaboklab(34.39% 0.0436 -0.1506)
OKLCHoklch(34.39% 0.157 286.2)
XYZxyz(6.2845, 3.4863, 22.1671)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F84 #6B841F
analogous
#1F3984 #381F84 #6A1F84
triadic
#381F84 #84381F #1F8438
tetradic
#381F84 #841F39 #6B841F #1F846A
square
#381F84 #841F39 #6B841F #1F846A
split-complementary
#381F84 #846A1F #39841F
monochromatic
#0E0821 #231352 #381F84 #4D2BB6 #6C49D4

Accessibility & contrast

On white

12.37
#381F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#381F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F84
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F84#FFFFFF#000000##FFFFFF
##381F841.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#153B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381f84;
/* rgb */ color: rgb(56, 31, 132);
/* oklch */ color: oklch(34.4% 0.157 286.2);
Tailwind
colors: {
  custom: {
    50: '#785ea9',
    500: '#381f84',
    950: '#000000',
  },
}
SCSS
$custom: #381f84;
$custom-light: #785ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#381f84",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 254.851,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34393,
    "c": 0.15678,
    "h": 286.2
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#381F84
secondary
#9BB748
accent
#E543BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F84

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

Preview Lab → · Contrast checker → · Palette generator →

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