#381056#381056

#381056 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.119 H 306.0°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#381056
RGBrgb(56, 16, 86)
HSLhsl(274, 69%, 20%)
HSVhsv(274, 81%, 34%)
CMYKcmyk(34.9%, 81.4%, 0%, 66.3%)
CIE-LABlab(14.86, 33.25, -33.85)
CIE-LCHlch(14.86, 47.45, 314.48°)
OKLaboklab(28.1% 0.0699 -0.0963)
OKLCHoklch(28.1% 0.119 306)
XYZxyz(3.4955, 1.8833, 8.9816)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381056 #2E5610
analogous
#151056 #381056 #561051
triadic
#381056 #563810 #105638
tetradic
#381056 #561510 #2E5610 #105156
square
#381056 #561510 #2E5610 #105156
split-complementary
#381056 #515610 #105615
monochromatic
#11051A #160622 #381056 #5A1A8A #7B23BD

Accessibility & contrast

On white

15.25
#381056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381056
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381056#FFFFFF#000000##FFFFFF
##3810561.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#332132
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #381056;
/* rgb */ color: rgb(56, 16, 86);
/* oklch */ color: oklch(28.1% 0.119 306.0);
Tailwind
colors: {
  custom: {
    50: '#725386',
    500: '#381056',
    950: '#000000',
  },
}
SCSS
$custom: #381056;
$custom-light: #725386;
$custom-dark: #000000;
JSON
{
  "hex": "#381056",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 274.286,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.28101,
    "c": 0.11897,
    "h": 306
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#381056
secondary
#5A8F32
accent
#EB3C87
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381056

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

Preview Lab → · Contrast checker → · Palette generator →

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