#381E6A#381E6A

#381E6A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.125 H 293.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#381E6A
RGBrgb(56, 30, 106)
HSLhsl(261, 56%, 27%)
HSVhsv(261, 72%, 42%)
CMYKcmyk(47.2%, 71.7%, 0%, 58.4%)
CIE-LABlab(19.27, 31.46, -39.97)
CIE-LCHlch(19.27, 50.87, 308.21°)
OKLaboklab(31.78% 0.0503 -0.1143)
OKLCHoklch(31.78% 0.125 293.8)
XYZxyz(4.6960, 2.8098, 13.9278)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E6A #506A1E
analogous
#1E2A6A #381E6A #5E1E6A
triadic
#381E6A #6A381E #1E6A38
tetradic
#381E6A #6A1E2A #506A1E #1E6A5E
square
#381E6A #6A1E2A #506A1E #1E6A5E
split-complementary
#381E6A #6A5E1E #2A6A1E
monochromatic
#0D0718 #1F113A #381E6A #512C9A #6B3BC7

Accessibility & contrast

On white

13.44
#381E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E6A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E6A#FFFFFF#000000##FFFFFF
##381E6A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#2A3141
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381e6a;
/* rgb */ color: rgb(56, 30, 106);
/* oklch */ color: oklch(31.8% 0.125 293.8);
Tailwind
colors: {
  custom: {
    50: '#745c95',
    500: '#381e6a',
    950: '#000000',
  },
}
SCSS
$custom: #381e6a;
$custom-light: #745c95;
$custom-dark: #000000;
JSON
{
  "hex": "#381e6a",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 260.526,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31778,
    "c": 0.12494,
    "h": 293.8
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#381E6A
secondary
#809E45
accent
#DF49AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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