#381558#381558

#381558 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.115 H 303.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#381558
RGBrgb(56, 21, 88)
HSLhsl(271, 61%, 21%)
HSVhsv(271, 76%, 35%)
CMYKcmyk(36.4%, 76.1%, 0%, 65.5%)
CIE-LABlab(15.91, 31.30, -33.50)
CIE-LCHlch(15.91, 45.85, 313.06°)
OKLaboklab(28.9% 0.0639 -0.0953)
OKLCHoklch(28.9% 0.115 303.8)
XYZxyz(3.6601, 2.0817, 9.4396)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381558 #355815
analogous
#171558 #381558 #581557
triadic
#381558 #583815 #155838
tetradic
#381558 #581715 #355815 #155758
square
#381558 #581715 #355815 #155758
split-complementary
#381558 #575815 #155817
monochromatic
#100619 #190927 #381558 #572189 #772DBB

Accessibility & contrast

On white

14.83
#381558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#381558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381558
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381558#FFFFFF#000000##FFFFFF
##3815581.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#322535
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381558;
/* rgb */ color: rgb(56, 21, 88);
/* oklch */ color: oklch(28.9% 0.115 303.8);
Tailwind
colors: {
  custom: {
    50: '#725688',
    500: '#381558',
    950: '#000000',
  },
}
SCSS
$custom: #381558;
$custom-light: #725688;
$custom-dark: #000000;
JSON
{
  "hex": "#381558",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 271.343,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28897,
    "c": 0.11474,
    "h": 303.8
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#381558
secondary
#629039
accent
#E54390
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381558

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

Preview Lab → · Contrast checker → · Palette generator →

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