#381976#381976

#381976 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.146 H 291.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#381976
RGBrgb(56, 25, 118)
HSLhsl(260, 65%, 28%)
HSVhsv(260, 79%, 46%)
CMYKcmyk(52.5%, 78.8%, 0%, 53.7%)
CIE-LABlab(19.41, 37.77, -47.50)
CIE-LCHlch(19.41, 60.69, 308.49°)
OKLaboklab(32.22% 0.0525 -0.1364)
OKLCHoklch(32.22% 0.146 291)
XYZxyz(5.2476, 2.8438, 17.4084)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381976 #577619
analogous
#192876 #381976 #661976
triadic
#381976 #763819 #197638
tetradic
#381976 #761928 #577619 #197666
square
#381976 #761928 #577619 #197666
split-complementary
#381976 #766619 #287619
monochromatic
#0C0519 #200E43 #381976 #5024A8 #6A35D4

Accessibility & contrast

On white

13.39
#381976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381976
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381976#FFFFFF#000000##FFFFFF
##3819761.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#233346
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381976;
/* rgb */ color: rgb(56, 25, 118);
/* oklch */ color: oklch(32.2% 0.146 291.0);
Tailwind
colors: {
  custom: {
    50: '#76599e',
    500: '#381976',
    950: '#000000',
  },
}
SCSS
$custom: #381976;
$custom-light: #76599e;
$custom-dark: #000000;
JSON
{
  "hex": "#381976",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 260,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32222,
    "c": 0.14619,
    "h": 291
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#381976
secondary
#87AB40
accent
#E840B0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381976

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

Preview Lab → · Contrast checker → · Palette generator →

#381976 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva