#381D6A#381D6A

#381D6A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.126 H 294.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#381D6A
RGBrgb(56, 29, 106)
HSLhsl(261, 57%, 26%)
HSVhsv(261, 73%, 42%)
CMYKcmyk(47.2%, 72.6%, 0%, 58.4%)
CIE-LABlab(19.06, 32.04, -40.31)
CIE-LCHlch(19.06, 51.49, 308.48°)
OKLaboklab(31.63% 0.0515 -0.1153)
OKLCHoklch(31.63% 0.126 294)
XYZxyz(4.6711, 2.7600, 13.9195)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D6A #4F6A1D
analogous
#1D296A #381D6A #5F1D6A
triadic
#381D6A #6A381D #1D6A38
tetradic
#381D6A #6A1D29 #4F6A1D #1D6A5F
square
#381D6A #6A1D29 #4F6A1D #1D6A5F
split-complementary
#381D6A #6A5F1D #296A1D
monochromatic
#0D0718 #1F103A #381D6A #512A9A #6B39C9

Accessibility & contrast

On white

13.53
#381D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D6A
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D6A#FFFFFF#000000##FFFFFF
##381D6A1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#2A3041
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381d6a;
/* rgb */ color: rgb(56, 29, 106);
/* oklch */ color: oklch(31.6% 0.126 294.0);
Tailwind
colors: {
  custom: {
    50: '#745b95',
    500: '#381d6a',
    950: '#000000',
  },
}
SCSS
$custom: #381d6a;
$custom-light: #745b95;
$custom-dark: #000000;
JSON
{
  "hex": "#381d6a",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 261.039,
    "s": 57.037,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31628,
    "c": 0.1263,
    "h": 294
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#381D6A
secondary
#7F9F44
accent
#E048AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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