#381F5C#381F5C

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

Color values

HEX#381F5C
RGBrgb(56, 31, 92)
HSLhsl(265, 50%, 24%)
HSVhsv(265, 66%, 36%)
CMYKcmyk(39.1%, 66.3%, 0%, 63.9%)
CIE-LABlab(18.34, 26.67, -32.25)
CIE-LCHlch(18.34, 41.85, 309.59°)
OKLaboklab(30.75% 0.0508 -0.0917)
OKLCHoklch(30.75% 0.105 299)
XYZxyz(4.0522, 2.5934, 10.4102)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F5C #435C1F
analogous
#1F255C #381F5C #571F5C
triadic
#381F5C #5C381F #1F5C38
tetradic
#381F5C #5C1F25 #435C1F #1F5C57
square
#381F5C #5C1F25 #435C1F #1F5C57
split-complementary
#381F5C #5C571F #255C1F
monochromatic
#0E0817 #1C102E #381F5C #542E8A #703EB8

Accessibility & contrast

On white

13.83
#381F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F5C
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F5C#FFFFFF#000000##FFFFFF
##381F5C1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#062C5B
Tritanopia (blue-blind)
#302C3A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381f5c;
/* rgb */ color: rgb(56, 31, 92);
/* oklch */ color: oklch(30.7% 0.105 299.0);
Tailwind
colors: {
  custom: {
    50: '#725c8b',
    500: '#381f5c',
    950: '#000000',
  },
}
SCSS
$custom: #381f5c;
$custom-light: #725c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#381f5c",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 264.59,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30745,
    "c": 0.10479,
    "h": 299
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#381F5C
secondary
#729146
accent
#D94FA0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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