#381F4E#381F4E

#381F4E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.086 H 306.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#381F4E
RGBrgb(56, 31, 78)
HSLhsl(272, 43%, 21%)
HSVhsv(272, 60%, 31%)
CMYKcmyk(28.2%, 60.3%, 0%, 69.4%)
CIE-LABlab(17.32, 22.64, -24.46)
CIE-LCHlch(17.32, 33.33, 312.79°)
OKLaboklab(29.68% 0.0508 -0.0688)
OKLCHoklch(29.68% 0.086 306.5)
XYZxyz(3.4957, 2.3708, 7.4797)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F4E #354E1F
analogous
#211F4E #381F4E #4E1F4D
triadic
#381F4E #4E381F #1F4E38
tetradic
#381F4E #4E211F #354E1F #1F4D4E
square
#381F4E #4E211F #354E1F #1F4D4E
split-complementary
#381F4E #4D4E1F #1F4E21
monochromatic
#100916 #190E22 #381F4E #57307A #7742A6

Accessibility & contrast

On white

14.25
#381F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F4E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F4E#FFFFFF#000000##FFFFFF
##381F4E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A50
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#352833
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381f4e;
/* rgb */ color: rgb(56, 31, 78);
/* oklch */ color: oklch(29.7% 0.086 306.5);
Tailwind
colors: {
  custom: {
    50: '#705c80',
    500: '#381f4e',
    950: '#000000',
  },
}
SCSS
$custom: #381f4e;
$custom-light: #705c80;
$custom-dark: #000000;
JSON
{
  "hex": "#381f4e",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 271.915,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2968,
    "c": 0.08553,
    "h": 306.5
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#381F4E
secondary
#628346
accent
#D35590
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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