#381B4E#381B4E

#381B4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.093 H 307.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#381B4E
RGBrgb(56, 27, 78)
HSLhsl(274, 49%, 21%)
HSVhsv(274, 65%, 31%)
CMYKcmyk(28.2%, 65.4%, 0%, 69.4%)
CIE-LABlab(16.38, 25.15, -25.97)
CIE-LCHlch(16.38, 36.15, 314.08°)
OKLaboklab(28.99% 0.0569 -0.0732)
OKLCHoklch(28.99% 0.093 307.9)
XYZxyz(3.3977, 2.1747, 7.4470)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B4E #314E1B
analogous
#1F1B4E #381B4E #4E1B4A
triadic
#381B4E #4E381B #1B4E38
tetradic
#381B4E #4E1F1B #314E1B #1B4A4E
square
#381B4E #4E1F1B #314E1B #1B4A4E
split-complementary
#381B4E #4A4E1B #1B4E1F
monochromatic
#100817 #170B21 #381B4E #592B7B #793AA9

Accessibility & contrast

On white

14.63
#381B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B4E
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B4E#FFFFFF#000000##FFFFFF
##381B4E1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#13294D
Tritanopia (blue-blind)
#352531
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381b4e;
/* rgb */ color: rgb(56, 27, 78);
/* oklch */ color: oklch(29.0% 0.093 307.9);
Tailwind
colors: {
  custom: {
    50: '#715980',
    500: '#381b4e',
    950: '#000000',
  },
}
SCSS
$custom: #381b4e;
$custom-light: #715980;
$custom-dark: #000000;
JSON
{
  "hex": "#381b4e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 274.118,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28987,
    "c": 0.09271,
    "h": 307.9
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#381B4E
secondary
#5E8441
accent
#D8508B
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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