#381356#381356

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

Color values

HEX#381356
RGBrgb(56, 19, 86)
HSLhsl(273, 64%, 21%)
HSVhsv(273, 78%, 34%)
CMYKcmyk(34.9%, 77.9%, 0%, 66.3%)
CIE-LABlab(15.37, 31.80, -33.02)
CIE-LCHlch(15.37, 45.84, 313.92°)
OKLaboklab(28.46% 0.0666 -0.0939)
OKLCHoklch(28.46% 0.115 305.4)
XYZxyz(3.5431, 1.9784, 8.9975)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381356 #315613
analogous
#161356 #381356 #561352
triadic
#381356 #563813 #135638
tetradic
#381356 #561613 #315613 #135256
square
#381356 #561613 #315613 #135256
split-complementary
#381356 #525613 #135616
monochromatic
#100619 #170824 #381356 #591E88 #7929BA

Accessibility & contrast

On white

15.05
#381356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381356
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381356#FFFFFF#000000##FFFFFF
##3813561.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#332333
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381356;
/* rgb */ color: rgb(56, 19, 86);
/* oklch */ color: oklch(28.5% 0.115 305.4);
Tailwind
colors: {
  custom: {
    50: '#725486',
    500: '#381356',
    950: '#000000',
  },
}
SCSS
$custom: #381356;
$custom-light: #725486;
$custom-dark: #000000;
JSON
{
  "hex": "#381356",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 273.134,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28463,
    "c": 0.1151,
    "h": 305.4
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#381356
secondary
#5E8E36
accent
#E7418B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381356

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

Preview Lab → · Contrast checker → · Palette generator →

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