#381C6E#381C6E

#381C6E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.133 H 292.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#381C6E
RGBrgb(56, 28, 110)
HSLhsl(260, 59%, 27%)
HSVhsv(260, 75%, 43%)
CMYKcmyk(49.1%, 74.5%, 0%, 56.9%)
CIE-LABlab(19.21, 33.81, -42.66)
CIE-LCHlch(19.21, 54.43, 308.40°)
OKLaboklab(31.85% 0.0517 -0.1222)
OKLCHoklch(31.85% 0.133 292.9)
XYZxyz(4.8598, 2.7969, 15.0326)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C6E #526E1C
analogous
#1C296E #381C6E #611C6E
triadic
#381C6E #6E381C #1C6E38
tetradic
#381C6E #6E1C29 #526E1C #1C6E61
square
#381C6E #6E1C29 #526E1C #1C6E61
split-complementary
#381C6E #6E611C #296E1C
monochromatic
#0C0618 #1F103D #381C6E #51289F #6B38CC

Accessibility & contrast

On white

13.47
#381C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C6E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C6E#FFFFFF#000000##FFFFFF
##381C6E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#283143
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381c6e;
/* rgb */ color: rgb(56, 28, 110);
/* oklch */ color: oklch(31.9% 0.133 292.9);
Tailwind
colors: {
  custom: {
    50: '#745b98',
    500: '#381c6e',
    950: '#000000',
  },
}
SCSS
$custom: #381c6e;
$custom-light: #745b98;
$custom-dark: #000000;
JSON
{
  "hex": "#381c6e",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 260.488,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.13274,
    "h": 292.9
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#381C6E
secondary
#82A343
accent
#E345AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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