#381F96#381F96

#381F96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.179 H 282.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#381F96
RGBrgb(56, 31, 150)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(62.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.74, 44.32, -60.48)
CIE-LCHlch(23.74, 74.98, 306.23°)
OKLaboklab(36.25% 0.0386 -0.1744)
OKLCHoklch(36.25% 0.179 282.5)
XYZxyz(7.6242, 4.0222, 29.2228)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F96 #7D961F
analogous
#1F4196 #381F96 #731F96
triadic
#381F96 #96381F #1F9638
tetradic
#381F96 #961F41 #7D961F #1F9673
square
#381F96 #961F41 #7D961F #1F9673
split-complementary
#381F96 #96731F #41961F
monochromatic
#120A31 #251563 #381F96 #4B29C9 #7054DC

Accessibility & contrast

On white

11.64
#381F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F96
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F96#FFFFFF#000000##FFFFFF
##381F961.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381f96;
/* rgb */ color: rgb(56, 31, 150);
/* oklch */ color: oklch(36.2% 0.179 282.5);
Tailwind
colors: {
  custom: {
    50: '#7b5fb6',
    500: '#381f96',
    950: '#000000',
  },
}
SCSS
$custom: #381f96;
$custom-light: #7b5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#381f96",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 252.605,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.17865,
    "h": 282.5
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#381F96
secondary
#A8BF52
accent
#E93FC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381F96

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

Preview Lab → · Contrast checker → · Palette generator →

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