#381058#381058

#381058 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.121 H 304.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#381058
RGBrgb(56, 16, 88)
HSLhsl(273, 69%, 20%)
HSVhsv(273, 82%, 35%)
CMYKcmyk(36.4%, 81.8%, 0%, 65.5%)
CIE-LABlab(15.04, 33.77, -34.91)
CIE-LCHlch(15.04, 48.57, 314.04°)
OKLaboklab(28.28% 0.0694 -0.0994)
OKLCHoklch(28.28% 0.121 304.9)
XYZxyz(3.5772, 1.9159, 9.4120)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381058 #305810
analogous
#141058 #381058 #581054
triadic
#381058 #583810 #105838
tetradic
#381058 #581410 #305810 #105458
square
#381058 #581410 #305810 #105458
split-complementary
#381058 #545810 #105814
monochromatic
#10051A #170724 #381058 #59198C #7A23C0

Accessibility & contrast

On white

15.18
#381058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381058
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381058#FFFFFF#000000##FFFFFF
##3810581.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#322233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381058;
/* rgb */ color: rgb(56, 16, 88);
/* oklch */ color: oklch(28.3% 0.121 304.9);
Tailwind
colors: {
  custom: {
    50: '#725388',
    500: '#381058',
    950: '#000000',
  },
}
SCSS
$custom: #381058;
$custom-light: #725388;
$custom-dark: #000000;
JSON
{
  "hex": "#381058",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 273.333,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28281,
    "c": 0.12122,
    "h": 304.9
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#381058
secondary
#5D9132
accent
#EC3C8A
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381058

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

Preview Lab → · Contrast checker → · Palette generator →

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