#381157#381157

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

Color values

HEX#381157
RGBrgb(56, 17, 87)
HSLhsl(273, 67%, 20%)
HSVhsv(273, 80%, 34%)
CMYKcmyk(35.6%, 80.5%, 0%, 65.9%)
CIE-LABlab(15.11, 33.04, -34.12)
CIE-LCHlch(15.11, 47.49, 314.08°)
OKLaboklab(28.31% 0.0686 -0.0971)
OKLCHoklch(28.31% 0.119 305.2)
XYZxyz(3.5512, 1.9298, 9.2004)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381157 #305711
analogous
#151157 #381157 #571153
triadic
#381157 #573811 #115738
tetradic
#381157 #571511 #305711 #115357
square
#381157 #571511 #305711 #115357
split-complementary
#381157 #535711 #115715
monochromatic
#10051A #170724 #381157 #591B8A #7A25BD

Accessibility & contrast

On white

15.15
#381157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381157
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381157#FFFFFF#000000##FFFFFF
##3811571.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#322233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381157;
/* rgb */ color: rgb(56, 17, 87);
/* oklch */ color: oklch(28.3% 0.119 305.2);
Tailwind
colors: {
  custom: {
    50: '#725387',
    500: '#381157',
    950: '#000000',
  },
}
SCSS
$custom: #381157;
$custom-light: #725387;
$custom-dark: #000000;
JSON
{
  "hex": "#381157",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 273.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28306,
    "c": 0.11886,
    "h": 305.2
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#381157
secondary
#5D9034
accent
#EA3E8A
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381157

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

Preview Lab → · Contrast checker → · Palette generator →

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