#381F91#381F91

#381F91 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.173 H 283.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#381F91
RGBrgb(56, 31, 145)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 57%)
CMYKcmyk(61.4%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.22, 42.81, -58.26)
CIE-LCHlch(23.22, 72.30, 306.31°)
OKLaboklab(35.72% 0.04 -0.168)
OKLCHoklch(35.72% 0.173 283.4)
XYZxyz(7.2301, 3.8646, 27.1475)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F91 #78911F
analogous
#1F3F91 #381F91 #711F91
triadic
#381F91 #91381F #1F9138
tetradic
#381F91 #911F3F #78911F #1F9171
square
#381F91 #911F3F #78911F #1F9171
split-complementary
#381F91 #91711F #3F911F
monochromatic
#11092C #25145F #381F91 #4B2AC3 #6F51DA

Accessibility & contrast

On white

11.84
#381F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F91
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F91#FFFFFF#000000##FFFFFF
##381F911.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381f91;
/* rgb */ color: rgb(56, 31, 145);
/* oklch */ color: oklch(35.7% 0.173 283.4);
Tailwind
colors: {
  custom: {
    50: '#7a5eb2',
    500: '#381f91',
    950: '#000000',
  },
}
SCSS
$custom: #381f91;
$custom-light: #7a5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381f91",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 253.158,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35722,
    "c": 0.17266,
    "h": 283.4
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#381F91
secondary
#A5BD4F
accent
#E840C3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #381F91

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

Preview Lab → · Contrast checker → · Palette generator →

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