#381A8B#381A8B

#381A8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.170 H 285.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#381A8B
RGBrgb(56, 26, 139)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 55%)
CMYKcmyk(59.7%, 81.3%, 0%, 45.5%)
CIE-LABlab(21.74, 43.46, -56.97)
CIE-LCHlch(21.74, 71.65, 307.34°)
OKLaboklab(34.5% 0.0452 -0.1641)
OKLCHoklch(34.5% 0.17 285.4)
XYZxyz(6.6591, 3.4432, 24.7348)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A8B #6D8B1A
analogous
#1A358B #381A8B #701A8B
triadic
#381A8B #8B381A #1A8B38
tetradic
#381A8B #8B1A35 #6D8B1A #1A8B70
square
#381A8B #8B1A35 #6D8B1A #1A8B70
split-complementary
#381A8B #8B701A #358B1A
monochromatic
#0E0724 #231057 #381A8B #4D24BF #6C43DC

Accessibility & contrast

On white

12.43
#381A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A8B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A8B#FFFFFF#000000##FFFFFF
##381A8B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#093C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381a8b;
/* rgb */ color: rgb(56, 26, 139);
/* oklch */ color: oklch(34.5% 0.170 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a5bae',
    500: '#381a8b',
    950: '#000000',
  },
}
SCSS
$custom: #381a8b;
$custom-light: #7a5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#381a8b",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 255.929,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34501,
    "c": 0.17023,
    "h": 285.4
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#381A8B
secondary
#9DBD44
accent
#EB3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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