#381A85#381A85

#381A85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.163 H 286.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#381A85
RGBrgb(56, 26, 133)
HSLhsl(257, 67%, 31%)
HSVhsv(257, 80%, 52%)
CMYKcmyk(57.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(21.10, 41.70, -54.25)
CIE-LCHlch(21.10, 68.42, 307.55°)
OKLaboklab(33.87% 0.0471 -0.1562)
OKLCHoklch(33.87% 0.163 286.8)
XYZxyz(6.2327, 3.2726, 22.4890)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A85 #67851A
analogous
#1A3185 #381A85 #6D1A85
triadic
#381A85 #85381A #1A8538
tetradic
#381A85 #851A31 #67851A #1A856D
square
#381A85 #851A31 #67851A #1A856D
split-complementary
#381A85 #856D1A #31851A
monochromatic
#0D061F #221052 #381A85 #4E24B8 #6B40DA

Accessibility & contrast

On white

12.69
#381A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A85
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A85#FFFFFF#000000##FFFFFF
##381A851.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#14394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381a85;
/* rgb */ color: rgb(56, 26, 133);
/* oklch */ color: oklch(33.9% 0.163 286.8);
Tailwind
colors: {
  custom: {
    50: '#795baa',
    500: '#381a85',
    950: '#000000',
  },
}
SCSS
$custom: #381a85;
$custom-light: #795baa;
$custom-dark: #000000;
JSON
{
  "hex": "#381a85",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 256.822,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3387,
    "c": 0.16314,
    "h": 286.8
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#381A85
secondary
#97B842
accent
#EA3EBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A85

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

Preview Lab → · Contrast checker → · Palette generator →

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