#381E78#381E78

#381E78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.143 H 289.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#381E78
RGBrgb(56, 30, 120)
HSLhsl(257, 60%, 29%)
HSVhsv(257, 75%, 47%)
CMYKcmyk(53.3%, 75%, 0%, 52.9%)
CIE-LABlab(20.54, 35.72, -46.93)
CIE-LCHlch(20.54, 58.98, 307.27°)
OKLaboklab(33.08% 0.0475 -0.1348)
OKLCHoklch(33.08% 0.143 289.4)
XYZxyz(5.4843, 3.1251, 18.0799)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E78 #5E781E
analogous
#1E3178 #381E78 #651E78
triadic
#381E78 #78381E #1E7838
tetradic
#381E78 #781E31 #5E781E #1E7865
square
#381E78 #781E31 #5E781E #1E7865
split-complementary
#381E78 #78651E #31781E
monochromatic
#0B0618 #211247 #381E78 #4F2AA9 #6A41CF

Accessibility & contrast

On white

12.92
#381E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E78
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E78#FFFFFF#000000##FFFFFF
##381E781.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#213649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381e78;
/* rgb */ color: rgb(56, 30, 120);
/* oklch */ color: oklch(33.1% 0.143 289.4);
Tailwind
colors: {
  custom: {
    50: '#765ca0',
    500: '#381e78',
    950: '#000000',
  },
}
SCSS
$custom: #381e78;
$custom-light: #765ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#381e78",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 257.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33079,
    "c": 0.14292,
    "h": 289.4
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#381E78
secondary
#8EAC46
accent
#E345B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381E78

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

Preview Lab → · Contrast checker → · Palette generator →

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