#381950#381950

#381950 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.099 H 307.2°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#381950
RGBrgb(56, 25, 80)
HSLhsl(274, 52%, 21%)
HSVhsv(274, 69%, 31%)
CMYKcmyk(30%, 68.8%, 0%, 68.6%)
CIE-LABlab(16.08, 26.89, -27.81)
CIE-LCHlch(16.08, 38.68, 314.04°)
OKLaboklab(28.82% 0.0597 -0.0786)
OKLCHoklch(28.82% 0.099 307.2)
XYZxyz(3.4262, 2.1152, 7.8156)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381950 #315019
analogous
#1C1950 #381950 #50194C
triadic
#381950 #503819 #195038
tetradic
#381950 #501C19 #315019 #194C50
square
#381950 #501C19 #315019 #194C50
split-complementary
#381950 #4C5019 #19501C
monochromatic
#100717 #170A21 #381950 #59287F #7936AD

Accessibility & contrast

On white

14.76
#381950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#381950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381950
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381950#FFFFFF#000000##FFFFFF
##3819501.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#0F284F
Tritanopia (blue-blind)
#342431
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381950;
/* rgb */ color: rgb(56, 25, 80);
/* oklch */ color: oklch(28.8% 0.099 307.2);
Tailwind
colors: {
  custom: {
    50: '#715881',
    500: '#381950',
    950: '#000000',
  },
}
SCSS
$custom: #381950;
$custom-light: #715881;
$custom-dark: #000000;
JSON
{
  "hex": "#381950",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 273.818,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28818,
    "c": 0.09871,
    "h": 307.2
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#381950
secondary
#5E863E
accent
#DC4C8B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381950

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

Preview Lab → · Contrast checker → · Palette generator →

#381950 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva