#381D4E#381D4E

#381D4E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.089 H 307.2°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#381D4E
RGBrgb(56, 29, 78)
HSLhsl(273, 46%, 21%)
HSVhsv(273, 63%, 31%)
CMYKcmyk(28.2%, 62.8%, 0%, 69.4%)
CIE-LABlab(16.84, 23.91, -25.22)
CIE-LCHlch(16.84, 34.75, 313.47°)
OKLaboklab(29.33% 0.0539 -0.071)
OKLCHoklch(29.33% 0.089 307.2)
XYZxyz(3.4451, 2.2696, 7.4628)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D4E #334E1D
analogous
#1F1D4E #381D4E #4E1D4B
triadic
#381D4E #4E381D #1D4E38
tetradic
#381D4E #4E1F1D #334E1D #1D4B4E
square
#381D4E #4E1F1D #334E1D #1D4B4E
split-complementary
#381D4E #4B4E1D #1D4E1F
monochromatic
#100816 #180C21 #381D4E #582E7B #783EA7

Accessibility & contrast

On white

14.44
#381D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D4E
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D4E#FFFFFF#000000##FFFFFF
##381D4E1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2950
Deuteranopia (green-blind)
#152A4D
Tritanopia (blue-blind)
#352632
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381d4e;
/* rgb */ color: rgb(56, 29, 78);
/* oklch */ color: oklch(29.3% 0.089 307.2);
Tailwind
colors: {
  custom: {
    50: '#705a80',
    500: '#381d4e',
    950: '#000000',
  },
}
SCSS
$custom: #381d4e;
$custom-light: #705a80;
$custom-dark: #000000;
JSON
{
  "hex": "#381d4e",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 273.061,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29326,
    "c": 0.08917,
    "h": 307.2
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#381D4E
secondary
#608344
accent
#D5528D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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