#381F70#381F70

#381F70 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.131 H 291.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#381F70
RGBrgb(56, 31, 112)
HSLhsl(259, 57%, 28%)
HSVhsv(259, 72%, 44%)
CMYKcmyk(50%, 72.3%, 0%, 56.1%)
CIE-LABlab(20.01, 32.71, -42.66)
CIE-LCHlch(20.01, 53.75, 307.48°)
OKLaboklab(32.47% 0.0482 -0.1223)
OKLCHoklch(32.47% 0.131 291.5)
XYZxyz(5.0447, 2.9904, 15.6375)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F70 #57701F
analogous
#1F2E70 #381F70 #601F70
triadic
#381F70 #70381F #1F7038
tetradic
#381F70 #701F2E #57701F #1F7060
square
#381F70 #701F2E #57701F #1F7060
split-complementary
#381F70 #70601F #2E701F
monochromatic
#0C0718 #201240 #381F70 #502CA0 #6A3FCA

Accessibility & contrast

On white

13.14
#381F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F70
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F70#FFFFFF#000000##FFFFFF
##381F701.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#263345
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381f70;
/* rgb */ color: rgb(56, 31, 112);
/* oklch */ color: oklch(32.5% 0.131 291.5);
Tailwind
colors: {
  custom: {
    50: '#755d9a',
    500: '#381f70',
    950: '#000000',
  },
}
SCSS
$custom: #381f70;
$custom-light: #755d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#381f70",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 258.519,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32472,
    "c": 0.13141,
    "h": 291.5
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#381F70
secondary
#87A447
accent
#E048B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F70

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

Preview Lab → · Contrast checker → · Palette generator →

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