#381E91#381E91

#381E91 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.174 H 283.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#381E91
RGBrgb(56, 30, 145)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 79%, 57%)
CMYKcmyk(61.4%, 79.3%, 0%, 43.1%)
CIE-LABlab(23.04, 43.31, -58.55)
CIE-LCHlch(23.04, 72.83, 306.49°)
OKLaboklab(35.6% 0.0407 -0.1688)
OKLCHoklch(35.6% 0.174 283.6)
XYZxyz(7.2044, 3.8132, 27.1389)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E91 #77911E
analogous
#1E3E91 #381E91 #721E91
triadic
#381E91 #91381E #1E9138
tetradic
#381E91 #911E3E #77911E #1E9172
square
#381E91 #911E3E #77911E #1E9172
split-complementary
#381E91 #91721E #3E911E
monochromatic
#11092C #24145E #381E91 #4C28C4 #6E4FDB

Accessibility & contrast

On white

11.91
#381E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#381E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E91
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E91#FFFFFF#000000##FFFFFF
##381E911.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e91;
/* rgb */ color: rgb(56, 30, 145);
/* oklch */ color: oklch(35.6% 0.174 283.6);
Tailwind
colors: {
  custom: {
    50: '#7a5eb2',
    500: '#381e91',
    950: '#000000',
  },
}
SCSS
$custom: #381e91;
$custom-light: #7a5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381e91",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 253.565,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.356,
    "c": 0.17363,
    "h": 283.6
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#381E91
secondary
#A4BD4D
accent
#E93FC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E91

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

Preview Lab → · Contrast checker → · Palette generator →

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