#381D94#381D94

#381D94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.178 H 283.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#381D94
RGBrgb(56, 29, 148)
HSLhsl(254, 67%, 35%)
HSVhsv(254, 80%, 58%)
CMYKcmyk(62.2%, 80.4%, 0%, 42%)
CIE-LABlab(23.19, 44.70, -60.16)
CIE-LCHlch(23.19, 74.95, 306.61°)
OKLaboklab(35.8% 0.0404 -0.1735)
OKLCHoklch(35.8% 0.178 283.1)
XYZxyz(7.4139, 3.8571, 28.3650)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D94 #79941D
analogous
#1D3E94 #381D94 #731D94
triadic
#381D94 #94381D #1D9438
tetradic
#381D94 #941D3E #79941D #1D9473
square
#381D94 #941D3E #79941D #1D9473
split-complementary
#381D94 #94731D #3E941D
monochromatic
#11092E #251361 #381D94 #4B27C7 #6F4FDC

Accessibility & contrast

On white

11.85
#381D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D94
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D94#FFFFFF#000000##FFFFFF
##381D941.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381d94;
/* rgb */ color: rgb(56, 29, 148);
/* oklch */ color: oklch(35.8% 0.178 283.1);
Tailwind
colors: {
  custom: {
    50: '#7b5db5',
    500: '#381d94',
    950: '#000000',
  },
}
SCSS
$custom: #381d94;
$custom-light: #7b5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#381d94",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 253.613,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35799,
    "c": 0.17811,
    "h": 283.1
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#381D94
secondary
#A5BF4E
accent
#EA3EC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381D94

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

Preview Lab → · Contrast checker → · Palette generator →

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