#381156#381156

#381156 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.118 H 305.8°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#381156
RGBrgb(56, 17, 86)
HSLhsl(274, 67%, 20%)
HSVhsv(274, 80%, 34%)
CMYKcmyk(34.9%, 80.2%, 0%, 66.3%)
CIE-LABlab(15.03, 32.78, -33.58)
CIE-LCHlch(15.03, 46.93, 314.30°)
OKLaboklab(28.22% 0.0688 -0.0955)
OKLCHoklch(28.22% 0.118 305.8)
XYZxyz(3.5107, 1.9136, 8.9867)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381156 #2F5611
analogous
#151156 #381156 #561151
triadic
#381156 #563811 #115638
tetradic
#381156 #561511 #2F5611 #115156
square
#381156 #561511 #2F5611 #115156
split-complementary
#381156 #515611 #115615
monochromatic
#11051A #170723 #381156 #591B89 #7B25BC

Accessibility & contrast

On white

15.19
#381156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#381156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381156
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381156#FFFFFF#000000##FFFFFF
##3811561.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381156;
/* rgb */ color: rgb(56, 17, 86);
/* oklch */ color: oklch(28.2% 0.118 305.8);
Tailwind
colors: {
  custom: {
    50: '#725386',
    500: '#381156',
    950: '#000000',
  },
}
SCSS
$custom: #381156;
$custom-light: #725386;
$custom-dark: #000000;
JSON
{
  "hex": "#381156",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 273.913,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28217,
    "c": 0.11772,
    "h": 305.8
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#381156
secondary
#5B8F34
accent
#EA3E89
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381156

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

Preview Lab → · Contrast checker → · Palette generator →

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