#381F6D#381F6D

#381F6D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.128 H 292.5°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#381F6D
RGBrgb(56, 31, 109)
HSLhsl(259, 56%, 27%)
HSVhsv(259, 72%, 43%)
CMYKcmyk(48.6%, 71.6%, 0%, 57.3%)
CIE-LABlab(19.74, 31.79, -41.15)
CIE-LCHlch(19.74, 52.00, 307.69°)
OKLaboklab(32.2% 0.0487 -0.1178)
OKLCHoklch(32.2% 0.128 292.5)
XYZxyz(4.8804, 2.9247, 14.7724)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F6D #546D1F
analogous
#1F2D6D #381F6D #5F1F6D
triadic
#381F6D #6D381F #1F6D38
tetradic
#381F6D #6D1F2D #546D1F #1F6D5F
square
#381F6D #6D1F2D #546D1F #1F6D5F
split-complementary
#381F6D #6D5F1F #2D6D1F
monochromatic
#0C0718 #20113D #381F6D #502D9D #6A3EC8

Accessibility & contrast

On white

13.25
#381F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F6D
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F6D#FFFFFF#000000##FFFFFF
##381F6D1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#283243
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381f6d;
/* rgb */ color: rgb(56, 31, 109);
/* oklch */ color: oklch(32.2% 0.128 292.5);
Tailwind
colors: {
  custom: {
    50: '#745d98',
    500: '#381f6d',
    950: '#000000',
  },
}
SCSS
$custom: #381f6d;
$custom-light: #745d98;
$custom-dark: #000000;
JSON
{
  "hex": "#381f6d",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 259.231,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.322,
    "c": 0.1275,
    "h": 292.5
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#381F6D
secondary
#84A147
accent
#DF49AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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