#381979#381979

#381979 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.150 H 290.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#381979
RGBrgb(56, 25, 121)
HSLhsl(259, 66%, 29%)
HSVhsv(259, 79%, 47%)
CMYKcmyk(53.7%, 79.3%, 0%, 52.5%)
CIE-LABlab(19.71, 38.65, -48.94)
CIE-LCHlch(19.71, 62.36, 308.30°)
OKLaboklab(32.52% 0.0516 -0.1406)
OKLCHoklch(32.52% 0.15 290.1)
XYZxyz(5.4287, 2.9163, 18.3623)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381979 #5A7919
analogous
#192A79 #381979 #681979
triadic
#381979 #793819 #197938
tetradic
#381979 #79192A #5A7919 #197968
square
#381979 #79192A #5A7919 #197968
split-complementary
#381979 #796819 #2A7919
monochromatic
#0C0519 #210F46 #381979 #4F23AC #6A37D6

Accessibility & contrast

On white

13.26
#381979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381979
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381979#FFFFFF#000000##FFFFFF
##3819791.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#203448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381979;
/* rgb */ color: rgb(56, 25, 121);
/* oklch */ color: oklch(32.5% 0.150 290.1);
Tailwind
colors: {
  custom: {
    50: '#765aa1',
    500: '#381979',
    950: '#000000',
  },
}
SCSS
$custom: #381979;
$custom-light: #765aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#381979",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 259.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32522,
    "c": 0.14981,
    "h": 290.1
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#381979
secondary
#8AAE40
accent
#E93FB2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381979

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

Preview Lab → · Contrast checker → · Palette generator →

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