#381D93#381D93

#381D93 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.177 H 283.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#381D93
RGBrgb(56, 29, 147)
HSLhsl(254, 67%, 35%)
HSVhsv(254, 80%, 58%)
CMYKcmyk(61.9%, 80.3%, 0%, 42.4%)
CIE-LABlab(23.09, 44.40, -59.72)
CIE-LCHlch(23.09, 74.41, 306.63°)
OKLaboklab(35.69% 0.0407 -0.1722)
OKLCHoklch(35.69% 0.177 283.3)
XYZxyz(7.3351, 3.8256, 27.9500)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D93 #78931D
analogous
#1D3D93 #381D93 #731D93
triadic
#381D93 #93381D #1D9338
tetradic
#381D93 #931D3D #78931D #1D9373
square
#381D93 #931D3D #78931D #1D9373
split-complementary
#381D93 #93731D #3D931D
monochromatic
#11092D #251360 #381D93 #4B27C6 #6F4EDC

Accessibility & contrast

On white

11.90
#381D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D93
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D93#FFFFFF#000000##FFFFFF
##381D931.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d93;
/* rgb */ color: rgb(56, 29, 147);
/* oklch */ color: oklch(35.7% 0.177 283.3);
Tailwind
colors: {
  custom: {
    50: '#7b5db4',
    500: '#381d93',
    950: '#000000',
  },
}
SCSS
$custom: #381d93;
$custom-light: #7b5db4;
$custom-dark: #000000;
JSON
{
  "hex": "#381d93",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 253.729,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35693,
    "c": 0.17694,
    "h": 283.3
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#381D93
secondary
#A5BF4D
accent
#EA3EC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381D93

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

Preview Lab → · Contrast checker → · Palette generator →

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