#381A53#381A53

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

Color values

HEX#381A53
RGBrgb(56, 26, 83)
HSLhsl(272, 52%, 21%)
HSVhsv(272, 69%, 33%)
CMYKcmyk(32.5%, 68.7%, 0%, 67.5%)
CIE-LABlab(16.52, 27.12, -29.13)
CIE-LCHlch(16.52, 39.80, 312.95°)
OKLaboklab(29.21% 0.0582 -0.0825)
OKLCHoklch(29.21% 0.101 305.2)
XYZxyz(3.5613, 2.2041, 8.4198)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A53 #35531A
analogous
#1C1A53 #381A53 #531A52
triadic
#381A53 #53381A #1A5338
tetradic
#381A53 #531C1A #35531A #1A5253
square
#381A53 #531C1A #35531A #1A5253
split-complementary
#381A53 #52531A #1A531C
monochromatic
#100717 #190B24 #381A53 #572982 #7737B0

Accessibility & contrast

On white

14.58
#381A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381A53
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A53#FFFFFF#000000##FFFFFF
##381A531.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#0C2952
Tritanopia (blue-blind)
#332633
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381a53;
/* rgb */ color: rgb(56, 26, 83);
/* oklch */ color: oklch(29.2% 0.101 305.2);
Tailwind
colors: {
  custom: {
    50: '#715884',
    500: '#381a53',
    950: '#000000',
  },
}
SCSS
$custom: #381a53;
$custom-light: #715884;
$custom-dark: #000000;
JSON
{
  "hex": "#381a53",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 83
  },
  "hsl": {
    "h": 271.579,
    "s": 52.294,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29211,
    "c": 0.10092,
    "h": 305.2
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#381A53
secondary
#628940
accent
#DC4C90
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381A53

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

Preview Lab → · Contrast checker → · Palette generator →

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