#381978#381978

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

Color values

HEX#381978
RGBrgb(56, 25, 120)
HSLhsl(260, 66%, 28%)
HSVhsv(260, 79%, 47%)
CMYKcmyk(53.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.61, 38.36, -48.46)
CIE-LCHlch(19.61, 61.80, 308.36°)
OKLaboklab(32.42% 0.0519 -0.1392)
OKLCHoklch(32.42% 0.149 290.4)
XYZxyz(5.3677, 2.8919, 18.0410)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381978 #597819
analogous
#192978 #381978 #671978
triadic
#381978 #783819 #197838
tetradic
#381978 #781929 #597819 #197867
square
#381978 #781929 #597819 #197867
split-complementary
#381978 #786719 #297819
monochromatic
#0C0519 #200E45 #381978 #5024AB #6A36D5

Accessibility & contrast

On white

13.30
#381978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381978
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381978#FFFFFF#000000##FFFFFF
##3819781.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#213348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381978;
/* rgb */ color: rgb(56, 25, 120);
/* oklch */ color: oklch(32.4% 0.149 290.4);
Tailwind
colors: {
  custom: {
    50: '#765aa0',
    500: '#381978',
    950: '#000000',
  },
}
SCSS
$custom: #381978;
$custom-light: #765aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#381978",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 259.579,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32422,
    "c": 0.1486,
    "h": 290.4
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#381978
secondary
#89AD40
accent
#E83FB1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381978

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

Preview Lab → · Contrast checker → · Palette generator →

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