#381879#381879

#381879 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 290.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#381879
RGBrgb(56, 24, 121)
HSLhsl(260, 67%, 28%)
HSVhsv(260, 80%, 47%)
CMYKcmyk(53.7%, 80.2%, 0%, 52.5%)
CIE-LABlab(19.53, 39.15, -49.22)
CIE-LCHlch(19.53, 62.89, 308.50°)
OKLaboklab(32.4% 0.0524 -0.1415)
OKLCHoklch(32.4% 0.151 290.3)
XYZxyz(5.4077, 2.8743, 18.3553)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381879 #597918
analogous
#182879 #381879 #681879
triadic
#381879 #793818 #187938
tetradic
#381879 #791828 #597918 #187968
square
#381879 #791828 #597918 #187968
split-complementary
#381879 #796818 #287918
monochromatic
#0C051A #200E46 #381879 #5022AC #6A35D7

Accessibility & contrast

On white

13.34
#381879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381879
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381879#FFFFFF#000000##FFFFFF
##3818791.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#203348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381879;
/* rgb */ color: rgb(56, 24, 121);
/* oklch */ color: oklch(32.4% 0.151 290.3);
Tailwind
colors: {
  custom: {
    50: '#7759a1',
    500: '#381879',
    950: '#000000',
  },
}
SCSS
$custom: #381879;
$custom-light: #7759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#381879",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 259.794,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32402,
    "c": 0.15086,
    "h": 290.3
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#381879
secondary
#89AE3F
accent
#EA3EB1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381879

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

Preview Lab → · Contrast checker → · Palette generator →

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