#381A5F#381A5F

#381A5F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.116 H 299.2°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#381A5F
RGBrgb(56, 26, 95)
HSLhsl(266, 57%, 24%)
HSVhsv(266, 73%, 37%)
CMYKcmyk(41.1%, 72.6%, 0%, 62.7%)
CIE-LABlab(17.49, 30.52, -35.62)
CIE-LCHlch(17.49, 46.91, 310.59°)
OKLaboklab(30.21% 0.0568 -0.1016)
OKLCHoklch(30.21% 0.116 299.2)
XYZxyz(4.0653, 2.4057, 11.0744)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A5F #415F1A
analogous
#1A1E5F #381A5F #5A1A5F
triadic
#381A5F #5F381A #1A5F38
tetradic
#381A5F #5F1A1E #415F1A #1A5F5A
square
#381A5F #5F1A1E #415F1A #1A5F5A
split-complementary
#381A5F #5F5A1A #1E5F1A
monochromatic
#0E0718 #1C0D2F #381A5F #54278F #7134BF

Accessibility & contrast

On white

14.18
#381A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A5F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A5F#FFFFFF#000000##FFFFFF
##381A5F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#2F2A3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381a5f;
/* rgb */ color: rgb(56, 26, 95);
/* oklch */ color: oklch(30.2% 0.116 299.2);
Tailwind
colors: {
  custom: {
    50: '#73598d',
    500: '#381a5f',
    950: '#000000',
  },
}
SCSS
$custom: #381a5f;
$custom-light: #73598d;
$custom-dark: #000000;
JSON
{
  "hex": "#381a5f",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 266.087,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30209,
    "c": 0.11636,
    "h": 299.2
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#381A5F
secondary
#709540
accent
#E0489E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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