#381D67#381D67

#381D67 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.122 H 295.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#381D67
RGBrgb(56, 29, 103)
HSLhsl(262, 56%, 26%)
HSVhsv(262, 72%, 40%)
CMYKcmyk(45.6%, 71.8%, 0%, 59.6%)
CIE-LABlab(18.79, 31.15, -38.78)
CIE-LCHlch(18.79, 49.73, 308.77°)
OKLaboklab(31.36% 0.052 -0.1108)
OKLCHoklch(31.36% 0.122 295.1)
XYZxyz(4.5178, 2.6986, 13.1122)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D67 #4C671D
analogous
#1D2767 #381D67 #5D1D67
triadic
#381D67 #67381D #1D6738
tetradic
#381D67 #671D27 #4C671D #1D675D
square
#381D67 #671D27 #4C671D #1D675D
split-complementary
#381D67 #675D1D #27671D
monochromatic
#0D0718 #1E1037 #381D67 #522A97 #6C38C7

Accessibility & contrast

On white

13.64
#381D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D67
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D67#FFFFFF#000000##FFFFFF
##381D671.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#2B2F3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381d67;
/* rgb */ color: rgb(56, 29, 103);
/* oklch */ color: oklch(31.4% 0.122 295.1);
Tailwind
colors: {
  custom: {
    50: '#735b93',
    500: '#381d67',
    950: '#000000',
  },
}
SCSS
$custom: #381d67;
$custom-light: #735b93;
$custom-dark: #000000;
JSON
{
  "hex": "#381d67",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 103
  },
  "hsl": {
    "h": 261.892,
    "s": 56.061,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31359,
    "c": 0.12242,
    "h": 295.1
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#381D67
secondary
#7C9C44
accent
#DF48A8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381D67

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

Preview Lab → · Contrast checker → · Palette generator →

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