#381D6F#381D6F

#381D6F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.133 H 292.3°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#381D6F
RGBrgb(56, 29, 111)
HSLhsl(260, 59%, 27%)
HSVhsv(260, 74%, 44%)
CMYKcmyk(49.5%, 73.9%, 0%, 56.5%)
CIE-LABlab(19.50, 33.55, -42.83)
CIE-LCHlch(19.50, 54.41, 308.07°)
OKLaboklab(32.09% 0.0505 -0.1228)
OKLCHoklch(32.09% 0.133 292.3)
XYZxyz(4.9387, 2.8670, 15.3290)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D6F #546F1D
analogous
#1D2B6F #381D6F #611D6F
triadic
#381D6F #6F381D #1D6F38
tetradic
#381D6F #6F1D2B #546F1D #1D6F61
square
#381D6F #6F1D2B #546F1D #1D6F61
split-complementary
#381D6F #6F611D #2B6F1D
monochromatic
#0C0618 #20103E #381D6F #502AA0 #6A3BCC

Accessibility & contrast

On white

13.35
#381D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D6F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D6F#FFFFFF#000000##FFFFFF
##381D6F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#273244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381d6f;
/* rgb */ color: rgb(56, 29, 111);
/* oklch */ color: oklch(32.1% 0.133 292.3);
Tailwind
colors: {
  custom: {
    50: '#755b99',
    500: '#381d6f',
    950: '#000000',
  },
}
SCSS
$custom: #381d6f;
$custom-light: #755b99;
$custom-dark: #000000;
JSON
{
  "hex": "#381d6f",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 259.756,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32086,
    "c": 0.13273,
    "h": 292.3
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#381D6F
secondary
#84A344
accent
#E246AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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