#381D5E#381D5E

#381D5E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.111 H 298.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#381D5E
RGBrgb(56, 29, 94)
HSLhsl(265, 53%, 24%)
HSVhsv(265, 69%, 37%)
CMYKcmyk(40.4%, 69.1%, 0%, 63.1%)
CIE-LABlab(18.04, 28.48, -34.06)
CIE-LCHlch(18.04, 44.39, 309.90°)
OKLaboklab(30.58% 0.0532 -0.097)
OKLCHoklch(30.58% 0.111 298.8)
XYZxyz(4.0901, 2.5276, 10.8599)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D5E #435E1D
analogous
#1D235E #381D5E #591D5E
triadic
#381D5E #5E381D #1D5E38
tetradic
#381D5E #5E1D23 #435E1D #1D5E59
square
#381D5E #5E1D23 #435E1D #1D5E59
split-complementary
#381D5E #5E591D #235E1D
monochromatic
#0E0717 #1C0F2F #381D5E #542B8D #703ABC

Accessibility & contrast

On white

13.95
#381D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D5E
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D5E#FFFFFF#000000##FFFFFF
##381D5E1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#2F2C3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381d5e;
/* rgb */ color: rgb(56, 29, 94);
/* oklch */ color: oklch(30.6% 0.111 298.8);
Tailwind
colors: {
  custom: {
    50: '#725b8c',
    500: '#381d5e',
    950: '#000000',
  },
}
SCSS
$custom: #381d5e;
$custom-light: #725b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#381d5e",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 264.923,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30582,
    "c": 0.11061,
    "h": 298.8
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#381D5E
secondary
#729344
accent
#DC4CA0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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