#381F78#381F78

#381F78 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.142 H 289.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#381F78
RGBrgb(56, 31, 120)
HSLhsl(257, 59%, 30%)
HSVhsv(257, 74%, 47%)
CMYKcmyk(53.3%, 74.2%, 0%, 52.9%)
CIE-LABlab(20.74, 35.16, -46.61)
CIE-LCHlch(20.74, 58.38, 307.03°)
OKLaboklab(33.22% 0.0465 -0.1338)
OKLCHoklch(33.22% 0.142 289.2)
XYZxyz(5.5101, 3.1765, 18.0885)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F78 #5F781F
analogous
#1F3378 #381F78 #651F78
triadic
#381F78 #78381F #1F7838
tetradic
#381F78 #781F33 #5F781F #1F7865
square
#381F78 #781F33 #5F781F #1F7865
split-complementary
#381F78 #78651F #33781F
monochromatic
#0B0618 #211247 #381F78 #4F2CA9 #6A43CE

Accessibility & contrast

On white

12.84
#381F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F78
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F78#FFFFFF#000000##FFFFFF
##381F781.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#213649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381f78;
/* rgb */ color: rgb(56, 31, 120);
/* oklch */ color: oklch(33.2% 0.142 289.2);
Tailwind
colors: {
  custom: {
    50: '#765da0',
    500: '#381f78',
    950: '#000000',
  },
}
SCSS
$custom: #381f78;
$custom-light: #765da0;
$custom-dark: #000000;
JSON
{
  "hex": "#381f78",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 256.854,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.1417,
    "h": 289.2
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#381F78
secondary
#8FAB47
accent
#E246B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381F78

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

Preview Lab → · Contrast checker → · Palette generator →

#381F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva