#381B59#381B59

#381B59 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.107 H 301.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#381B59
RGBrgb(56, 27, 89)
HSLhsl(268, 53%, 23%)
HSVhsv(268, 70%, 35%)
CMYKcmyk(37.1%, 69.7%, 0%, 65.1%)
CIE-LABlab(17.21, 28.22, -32.07)
CIE-LCHlch(17.21, 42.72, 311.34°)
OKLaboklab(29.85% 0.0563 -0.0911)
OKLCHoklch(29.85% 0.107 301.7)
XYZxyz(3.8256, 2.3459, 9.7005)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B59 #3C591B
analogous
#1B1D59 #381B59 #571B59
triadic
#381B59 #59381B #1B5938
tetradic
#381B59 #591B1D #3C591B #1B5957
square
#381B59 #591B1D #3C591B #1B5957
split-complementary
#381B59 #59571B #1D591B
monochromatic
#0F0717 #1A0D2A #381B59 #562988 #7337B7

Accessibility & contrast

On white

14.29
#381B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B59
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B59#FFFFFF#000000##FFFFFF
##381B591.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#042A58
Tritanopia (blue-blind)
#312937
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381b59;
/* rgb */ color: rgb(56, 27, 89);
/* oklch */ color: oklch(29.9% 0.107 301.7);
Tailwind
colors: {
  custom: {
    50: '#725988',
    500: '#381b59',
    950: '#000000',
  },
}
SCSS
$custom: #381b59;
$custom-light: #725988;
$custom-dark: #000000;
JSON
{
  "hex": "#381b59",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 268.065,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29852,
    "c": 0.10713,
    "h": 301.7
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#381B59
secondary
#6A8F41
accent
#DD4B99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381B59

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

Preview Lab → · Contrast checker → · Palette generator →

#381B59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva