#381155#381155

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

Color values

HEX#381155
RGBrgb(56, 17, 85)
HSLhsl(274, 67%, 20%)
HSVhsv(274, 80%, 33%)
CMYKcmyk(34.1%, 80%, 0%, 66.7%)
CIE-LABlab(14.94, 32.52, -33.05)
CIE-LCHlch(14.94, 46.36, 314.54°)
OKLaboklab(28.13% 0.069 -0.0939)
OKLCHoklch(28.13% 0.117 306.3)
XYZxyz(3.4707, 1.8976, 8.7760)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381155 #2E5511
analogous
#161155 #381155 #551150
triadic
#381155 #553811 #115538
tetradic
#381155 #551611 #2E5511 #115055
square
#381155 #551611 #2E5511 #115055
split-complementary
#381155 #505511 #115516
monochromatic
#11051A #160722 #381155 #5A1B88 #7B25BB

Accessibility & contrast

On white

15.22
#381155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381155
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381155#FFFFFF#000000##FFFFFF
##3811551.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#332132
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381155;
/* rgb */ color: rgb(56, 17, 85);
/* oklch */ color: oklch(28.1% 0.117 306.3);
Tailwind
colors: {
  custom: {
    50: '#725385',
    500: '#381155',
    950: '#000000',
  },
}
SCSS
$custom: #381155;
$custom-light: #725385;
$custom-dark: #000000;
JSON
{
  "hex": "#381155",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 274.412,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.28129,
    "c": 0.11657,
    "h": 306.3
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#381155
secondary
#5A8E34
accent
#EA3E87
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381155

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

Preview Lab → · Contrast checker → · Palette generator →

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