#381054#381054

#381054 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.117 H 307.1°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#381054
RGBrgb(56, 16, 84)
HSLhsl(275, 68%, 20%)
HSVhsv(275, 81%, 33%)
CMYKcmyk(33.3%, 81%, 0%, 67.1%)
CIE-LABlab(14.69, 32.73, -32.78)
CIE-LCHlch(14.69, 46.32, 314.96°)
OKLaboklab(27.92% 0.0703 -0.0931)
OKLCHoklch(27.92% 0.117 307.1)
XYZxyz(3.4161, 1.8515, 8.5632)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381054 #2C5410
analogous
#161054 #381054 #54104E
triadic
#381054 #543810 #105438
tetradic
#381054 #541610 #2C5410 #104E54
square
#381054 #541610 #2C5410 #104E54
split-complementary
#381054 #4E5410 #105416
monochromatic
#11051A #160621 #381054 #5A1A87 #7D24BB

Accessibility & contrast

On white

15.33
#381054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#381054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381054
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381054#FFFFFF#000000##FFFFFF
##3810541.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#332031
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #381054;
/* rgb */ color: rgb(56, 16, 84);
/* oklch */ color: oklch(27.9% 0.117 307.1);
Tailwind
colors: {
  custom: {
    50: '#725385',
    500: '#381054',
    950: '#000000',
  },
}
SCSS
$custom: #381054;
$custom-light: #725385;
$custom-dark: #000000;
JSON
{
  "hex": "#381054",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 275.294,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27923,
    "c": 0.11671,
    "h": 307.1
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#381054
secondary
#588E32
accent
#EB3D85
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #381054

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

Preview Lab → · Contrast checker → · Palette generator →

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