#381057#381057

#381057 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.120 H 305.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#381057
RGBrgb(56, 16, 87)
HSLhsl(274, 69%, 20%)
HSVhsv(274, 82%, 34%)
CMYKcmyk(35.6%, 81.6%, 0%, 65.9%)
CIE-LABlab(14.95, 33.51, -34.38)
CIE-LCHlch(14.95, 48.01, 314.26°)
OKLaboklab(28.19% 0.0696 -0.0979)
OKLCHoklch(28.19% 0.12 305.4)
XYZxyz(3.5361, 1.8995, 9.1953)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381057 #2F5710
analogous
#151057 #381057 #571052
triadic
#381057 #573810 #105738
tetradic
#381057 #571510 #2F5710 #105257
square
#381057 #571510 #2F5710 #105257
split-complementary
#381057 #525710 #105715
monochromatic
#11051A #170623 #381057 #591A8B #7B23BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381057#FFFFFF#000000##FFFFFF
##3810571.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)
#002459
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#322233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381057;
/* rgb */ color: rgb(56, 16, 87);
/* oklch */ color: oklch(28.2% 0.120 305.4);
Tailwind
colors: {
  custom: {
    50: '#725387',
    500: '#381057',
    950: '#000000',
  },
}
SCSS
$custom: #381057;
$custom-light: #725387;
$custom-dark: #000000;
JSON
{
  "hex": "#381057",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 273.803,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28191,
    "c": 0.1201,
    "h": 305.4
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#381057
secondary
#5B9032
accent
#EC3C89
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381057

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

Preview Lab → · Contrast checker → · Palette generator →

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