#381C8E#381C8E

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

Color values

HEX#381C8E
RGBrgb(56, 28, 142)
HSLhsl(255, 67%, 33%)
HSVhsv(255, 80%, 56%)
CMYKcmyk(60.6%, 80.3%, 0%, 44.3%)
CIE-LABlab(22.39, 43.39, -57.77)
CIE-LCHlch(22.39, 72.25, 306.91°)
OKLaboklab(35.05% 0.0429 -0.1665)
OKLCHoklch(35.05% 0.172 284.5)
XYZxyz(6.9271, 3.6238, 25.9204)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C8E #728E1C
analogous
#1C398E #381C8E #711C8E
triadic
#381C8E #8E381C #1C8E38
tetradic
#381C8E #8E1C39 #728E1C #1C8E71
square
#381C8E #8E1C39 #728E1C #1C8E71
split-complementary
#381C8E #8E711C #398E1C
monochromatic
#100828 #24125B #381C8E #4C26C1 #6D49DB

Accessibility & contrast

On white

12.18
#381C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C8E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C8E#FFFFFF#000000##FFFFFF
##381C8E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#013E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381c8e;
/* rgb */ color: rgb(56, 28, 142);
/* oklch */ color: oklch(35.0% 0.172 284.5);
Tailwind
colors: {
  custom: {
    50: '#7a5db0',
    500: '#381c8e',
    950: '#000000',
  },
}
SCSS
$custom: #381c8e;
$custom-light: #7a5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#381c8e",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 254.737,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.17193,
    "h": 284.5
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#381C8E
secondary
#A1BD49
accent
#EA3EC0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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