#381F6F#381F6F

#381F6F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.130 H 291.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#381F6F
RGBrgb(56, 31, 111)
HSLhsl(259, 56%, 28%)
HSVhsv(259, 72%, 44%)
CMYKcmyk(49.5%, 72.1%, 0%, 56.5%)
CIE-LABlab(19.92, 32.40, -42.16)
CIE-LCHlch(19.92, 53.17, 307.55°)
OKLaboklab(32.38% 0.0484 -0.1208)
OKLCHoklch(32.38% 0.13 291.8)
XYZxyz(4.9893, 2.9682, 15.3459)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F6F #566F1F
analogous
#1F2E6F #381F6F #601F6F
triadic
#381F6F #6F381F #1F6F38
tetradic
#381F6F #6F1F2E #566F1F #1F6F60
square
#381F6F #6F1F2E #566F1F #1F6F60
split-complementary
#381F6F #6F601F #2E6F1F
monochromatic
#0C0718 #20123F #381F6F #502C9F #6A3FC9

Accessibility & contrast

On white

13.18
#381F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F6F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F6F#FFFFFF#000000##FFFFFF
##381F6F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#273344
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381f6f;
/* rgb */ color: rgb(56, 31, 111);
/* oklch */ color: oklch(32.4% 0.130 291.8);
Tailwind
colors: {
  custom: {
    50: '#745d99',
    500: '#381f6f',
    950: '#000000',
  },
}
SCSS
$custom: #381f6f;
$custom-light: #745d99;
$custom-dark: #000000;
JSON
{
  "hex": "#381f6f",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 258.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.13011,
    "h": 291.8
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#381F6F
secondary
#86A347
accent
#E048B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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