#381E5D#381E5D

#381E5D is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.108 H 298.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#381E5D
RGBrgb(56, 30, 93)
HSLhsl(265, 51%, 24%)
HSVhsv(265, 68%, 36%)
CMYKcmyk(39.8%, 67.7%, 0%, 63.5%)
CIE-LABlab(18.19, 27.58, -33.16)
CIE-LCHlch(18.19, 43.13, 309.75°)
OKLaboklab(30.66% 0.052 -0.0943)
OKLCHoklch(30.66% 0.108 298.9)
XYZxyz(4.0705, 2.5596, 10.6334)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E5D #435D1E
analogous
#1E245D #381E5D #581E5D
triadic
#381E5D #5D381E #1E5D38
tetradic
#381E5D #5D1E24 #435D1E #1E5D58
square
#381E5D #5D1E24 #435D1E #1E5D58
split-complementary
#381E5D #5D581E #245D1E
monochromatic
#0E0717 #1C0F2F #381E5D #542D8B #703CBA

Accessibility & contrast

On white

13.89
#381E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E5D
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E5D#FFFFFF#000000##FFFFFF
##381E5D1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#022C5C
Tritanopia (blue-blind)
#302C3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381e5d;
/* rgb */ color: rgb(56, 30, 93);
/* oklch */ color: oklch(30.7% 0.108 298.9);
Tailwind
colors: {
  custom: {
    50: '#725b8b',
    500: '#381e5d',
    950: '#000000',
  },
}
SCSS
$custom: #381e5d;
$custom-light: #725b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#381e5d",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 264.762,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30661,
    "c": 0.10773,
    "h": 298.9
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#381E5D
secondary
#729245
accent
#DB4DA0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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