#381C4E#381C4E

#381C4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.091 H 307.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#381C4E
RGBrgb(56, 28, 78)
HSLhsl(274, 47%, 21%)
HSVhsv(274, 64%, 31%)
CMYKcmyk(28.2%, 64.1%, 0%, 69.4%)
CIE-LABlab(16.61, 24.53, -25.60)
CIE-LCHlch(16.61, 35.45, 313.78°)
OKLaboklab(29.15% 0.0554 -0.0721)
OKLCHoklch(29.15% 0.091 307.5)
XYZxyz(3.4210, 2.2214, 7.4548)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C4E #324E1C
analogous
#1F1C4E #381C4E #4E1C4B
triadic
#381C4E #4E381C #1C4E38
tetradic
#381C4E #4E1F1C #324E1C #1C4B4E
square
#381C4E #4E1F1C #324E1C #1C4B4E
split-complementary
#381C4E #4B4E1C #1C4E1F
monochromatic
#100817 #180C21 #381C4E #582C7B #793CA8

Accessibility & contrast

On white

14.54
#381C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C4E
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C4E#FFFFFF#000000##FFFFFF
##381C4E1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092850
Deuteranopia (green-blind)
#14294D
Tritanopia (blue-blind)
#352632
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381c4e;
/* rgb */ color: rgb(56, 28, 78);
/* oklch */ color: oklch(29.2% 0.091 307.5);
Tailwind
colors: {
  custom: {
    50: '#705a80',
    500: '#381c4e',
    950: '#000000',
  },
}
SCSS
$custom: #381c4e;
$custom-light: #705a80;
$custom-dark: #000000;
JSON
{
  "hex": "#381c4e",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 273.6,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.09095,
    "h": 307.5
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#381C4E
secondary
#5F8442
accent
#D7518C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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