#381D4F#381D4F

#381D4F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.091 H 306.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#381D4F
RGBrgb(56, 29, 79)
HSLhsl(272, 46%, 21%)
HSVhsv(272, 63%, 31%)
CMYKcmyk(29.1%, 63.3%, 0%, 69%)
CIE-LABlab(16.91, 24.19, -25.79)
CIE-LCHlch(16.91, 35.36, 313.16°)
OKLaboklab(29.4% 0.0539 -0.0727)
OKLCHoklch(29.4% 0.091 306.6)
XYZxyz(3.4812, 2.2840, 7.6531)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D4F #344F1D
analogous
#1F1D4F #381D4F #4F1D4D
triadic
#381D4F #4F381D #1D4F38
tetradic
#381D4F #4F1F1D #344F1D #1D4D4F
square
#381D4F #4F1F1D #344F1D #1D4D4F
split-complementary
#381D4F #4D4F1D #1D4F1F
monochromatic
#100816 #180D22 #381D4F #582D7C #773EA9

Accessibility & contrast

On white

14.42
#381D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#381D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D4F
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D4F#FFFFFF#000000##FFFFFF
##381D4F1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2951
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#342732
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381d4f;
/* rgb */ color: rgb(56, 29, 79);
/* oklch */ color: oklch(29.4% 0.091 306.6);
Tailwind
colors: {
  custom: {
    50: '#705a81',
    500: '#381d4f',
    950: '#000000',
  },
}
SCSS
$custom: #381d4f;
$custom-light: #705a81;
$custom-dark: #000000;
JSON
{
  "hex": "#381d4f",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 272.4,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.294,
    "c": 0.09051,
    "h": 306.6
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#381D4F
secondary
#618444
accent
#D6528F
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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