#381679#381679

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

Color values

HEX#381679
RGBrgb(56, 22, 121)
HSLhsl(261, 69%, 28%)
HSVhsv(261, 82%, 47%)
CMYKcmyk(53.7%, 81.8%, 0%, 52.5%)
CIE-LABlab(19.20, 40.10, -49.76)
CIE-LCHlch(19.20, 63.91, 308.86°)
OKLaboklab(32.17% 0.054 -0.143)
OKLCHoklch(32.17% 0.153 290.7)
XYZxyz(5.3680, 2.7948, 18.3421)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381679 #577916
analogous
#162579 #381679 #691679
triadic
#381679 #793816 #167938
tetradic
#381679 #791625 #577916 #167969
square
#381679 #791625 #577916 #167969
split-complementary
#381679 #796916 #257916
monochromatic
#0C051A #200D45 #381679 #501FAD #6A30D9

Accessibility & contrast

On white

13.47
#381679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381679
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381679#FFFFFF#000000##FFFFFF
##3816791.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#213347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381679;
/* rgb */ color: rgb(56, 22, 121);
/* oklch */ color: oklch(32.2% 0.153 290.7);
Tailwind
colors: {
  custom: {
    50: '#7758a1',
    500: '#381679',
    950: '#000000',
  },
}
SCSS
$custom: #381679;
$custom-light: #7758a1;
$custom-dark: #000000;
JSON
{
  "hex": "#381679",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 260.606,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.15287,
    "h": 290.7
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#381679
secondary
#87AE3D
accent
#EC3CB0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #381679

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

Preview Lab → · Contrast checker → · Palette generator →

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