#381358#381358

#381358 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.117 H 304.3°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#381358
RGBrgb(56, 19, 88)
HSLhsl(272, 64%, 21%)
HSVhsv(272, 78%, 35%)
CMYKcmyk(36.4%, 78.4%, 0%, 65.5%)
CIE-LABlab(15.55, 32.33, -34.09)
CIE-LCHlch(15.55, 46.98, 313.48°)
OKLaboklab(28.64% 0.0662 -0.097)
OKLCHoklch(28.64% 0.117 304.3)
XYZxyz(3.6248, 2.0111, 9.4278)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381358 #335813
analogous
#151358 #381358 #581355
triadic
#381358 #583813 #135838
tetradic
#381358 #581513 #335813 #135558
square
#381358 #581513 #335813 #135558
split-complementary
#381358 #555813 #135815
monochromatic
#100519 #180826 #381358 #581E8A #7829BD

Accessibility & contrast

On white

14.98
#381358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#381358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381358
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381358#FFFFFF#000000##FFFFFF
##3813581.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#322434
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #381358;
/* rgb */ color: rgb(56, 19, 88);
/* oklch */ color: oklch(28.6% 0.117 304.3);
Tailwind
colors: {
  custom: {
    50: '#725588',
    500: '#381358',
    950: '#000000',
  },
}
SCSS
$custom: #381358;
$custom-light: #725588;
$custom-dark: #000000;
JSON
{
  "hex": "#381358",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 272.174,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28638,
    "c": 0.11745,
    "h": 304.3
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

primary
#381358
secondary
#609037
accent
#E7408E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381358

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

Preview Lab → · Contrast checker → · Palette generator →

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