#381B4F#381B4F

#381B4F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.094 H 307.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#381B4F
RGBrgb(56, 27, 79)
HSLhsl(273, 49%, 21%)
HSVhsv(273, 66%, 31%)
CMYKcmyk(29.1%, 65.8%, 0%, 69%)
CIE-LABlab(16.45, 25.42, -26.53)
CIE-LCHlch(16.45, 36.74, 313.77°)
OKLaboklab(29.06% 0.0569 -0.0749)
OKLCHoklch(29.06% 0.094 307.2)
XYZxyz(3.4338, 2.1892, 7.6373)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B4F #324F1B
analogous
#1E1B4F #381B4F #4F1B4C
triadic
#381B4F #4F381B #1B4F38
tetradic
#381B4F #4F1E1B #324F1B #1B4C4F
square
#381B4F #4F1E1B #324F1B #1B4C4F
split-complementary
#381B4F #4C4F1B #1B4F1E
monochromatic
#100817 #180B21 #381B4F #582B7D #793AAA

Accessibility & contrast

On white

14.61
#381B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B4F
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B4F#FFFFFF#000000##FFFFFF
##381B4F1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#12294E
Tritanopia (blue-blind)
#342532
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381b4f;
/* rgb */ color: rgb(56, 27, 79);
/* oklch */ color: oklch(29.1% 0.094 307.2);
Tailwind
colors: {
  custom: {
    50: '#715981',
    500: '#381b4f',
    950: '#000000',
  },
}
SCSS
$custom: #381b4f;
$custom-light: #715981;
$custom-dark: #000000;
JSON
{
  "hex": "#381b4f",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 273.462,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29062,
    "c": 0.09402,
    "h": 307.2
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#381B4F
secondary
#5F8541
accent
#D94F8C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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