#381559#381559

#381559 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.116 H 303.3°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#381559
RGBrgb(56, 21, 89)
HSLhsl(271, 62%, 22%)
HSVhsv(271, 76%, 35%)
CMYKcmyk(37.1%, 76.4%, 0%, 65.1%)
CIE-LABlab(16.00, 31.57, -34.03)
CIE-LCHlch(16.00, 46.42, 312.85°)
OKLaboklab(28.98% 0.0637 -0.0969)
OKLCHoklch(28.98% 0.116 303.3)
XYZxyz(3.7018, 2.0984, 9.6593)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381559 #365915
analogous
#161559 #381559 #591558
triadic
#381559 #593815 #155938
tetradic
#381559 #591615 #365915 #155859
square
#381559 #591615 #365915 #155859
split-complementary
#381559 #585915 #155916
monochromatic
#100619 #190927 #381559 #57218B #762CBC

Accessibility & contrast

On white

14.79
#381559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381559
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381559#FFFFFF#000000##FFFFFF
##3815591.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#312535
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381559;
/* rgb */ color: rgb(56, 21, 89);
/* oklch */ color: oklch(29.0% 0.116 303.3);
Tailwind
colors: {
  custom: {
    50: '#725688',
    500: '#381559',
    950: '#000000',
  },
}
SCSS
$custom: #381559;
$custom-light: #725688;
$custom-dark: #000000;
JSON
{
  "hex": "#381559",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 270.882,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28984,
    "c": 0.11594,
    "h": 303.3
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#381559
secondary
#649139
accent
#E54392
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381559

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

Preview Lab → · Contrast checker → · Palette generator →

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