#381357#381357

#381357 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.116 H 304.8°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#381357
RGBrgb(56, 19, 87)
HSLhsl(273, 64%, 21%)
HSVhsv(273, 78%, 34%)
CMYKcmyk(35.6%, 78.2%, 0%, 65.9%)
CIE-LABlab(15.46, 32.06, -33.56)
CIE-LCHlch(15.46, 46.41, 313.70°)
OKLaboklab(28.55% 0.0664 -0.0954)
OKLCHoklch(28.55% 0.116 304.8)
XYZxyz(3.5837, 1.9946, 9.2112)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381357 #325713
analogous
#161357 #381357 #571354
triadic
#381357 #573813 #135738
tetradic
#381357 #571613 #325713 #135457
square
#381357 #571613 #325713 #135457
split-complementary
#381357 #545713 #135716
monochromatic
#100519 #180825 #381357 #581E89 #7929BB

Accessibility & contrast

On white

15.01
#381357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#381357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381357
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381357#FFFFFF#000000##FFFFFF
##3813571.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#322333
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #381357;
/* rgb */ color: rgb(56, 19, 87);
/* oklch */ color: oklch(28.5% 0.116 304.8);
Tailwind
colors: {
  custom: {
    50: '#725587',
    500: '#381357',
    950: '#000000',
  },
}
SCSS
$custom: #381357;
$custom-light: #725587;
$custom-dark: #000000;
JSON
{
  "hex": "#381357",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 272.647,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2855,
    "c": 0.11627,
    "h": 304.8
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#381357
secondary
#5F8F36
accent
#E7418D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381357

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

Preview Lab → · Contrast checker → · Palette generator →

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