#381D8D#381D8D

#381D8D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.170 H 284.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#381D8D
RGBrgb(56, 29, 141)
HSLhsl(254, 66%, 33%)
HSVhsv(254, 79%, 55%)
CMYKcmyk(60.3%, 79.4%, 0%, 44.7%)
CIE-LABlab(22.45, 42.61, -57.04)
CIE-LCHlch(22.45, 71.20, 306.76°)
OKLaboklab(35.06% 0.0426 -0.1644)
OKLCHoklch(35.06% 0.17 284.5)
XYZxyz(6.8765, 3.6421, 25.5348)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D8D #728D1D
analogous
#1D3A8D #381D8D #701D8D
triadic
#381D8D #8D381D #1D8D38
tetradic
#381D8D #8D1D3A #728D1D #1D8D70
square
#381D8D #8D1D3A #728D1D #1D8D70
split-complementary
#381D8D #8D701D #3A8D1D
monochromatic
#100827 #24135A #381D8D #4C27C0 #6D4BDA

Accessibility & contrast

On white

12.15
#381D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D8D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D8D#FFFFFF#000000##FFFFFF
##381D8D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#043E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381d8d;
/* rgb */ color: rgb(56, 29, 141);
/* oklch */ color: oklch(35.1% 0.170 284.5);
Tailwind
colors: {
  custom: {
    50: '#7a5daf',
    500: '#381d8d',
    950: '#000000',
  },
}
SCSS
$custom: #381d8d;
$custom-light: #7a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#381d8d",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 254.464,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3506,
    "c": 0.16979,
    "h": 284.5
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#381D8D
secondary
#A1BC4A
accent
#E93FC0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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