#381F93#381F93

#381F93 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.175 H 283.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#381F93
RGBrgb(56, 31, 147)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(61.9%, 78.9%, 0%, 42.4%)
CIE-LABlab(23.43, 43.42, -59.15)
CIE-LCHlch(23.43, 73.38, 306.28°)
OKLaboklab(35.93% 0.0395 -0.1706)
OKLCHoklch(35.93% 0.175 283)
XYZxyz(7.3857, 3.9268, 27.9669)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F93 #7A931F
analogous
#1F4093 #381F93 #721F93
triadic
#381F93 #93381F #1F9338
tetradic
#381F93 #931F40 #7A931F #1F9372
square
#381F93 #931F40 #7A931F #1F9372
split-complementary
#381F93 #93721F #40931F
monochromatic
#110A2E #251460 #381F93 #4B2AC6 #6F52DA

Accessibility & contrast

On white

11.76
#381F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F93
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F93#FFFFFF#000000##FFFFFF
##381F931.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381f93;
/* rgb */ color: rgb(56, 31, 147);
/* oklch */ color: oklch(35.9% 0.175 283.0);
Tailwind
colors: {
  custom: {
    50: '#7b5eb4',
    500: '#381f93',
    950: '#000000',
  },
}
SCSS
$custom: #381f93;
$custom-light: #7b5eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#381f93",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 252.931,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35931,
    "c": 0.17506,
    "h": 283
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#381F93
secondary
#A6BE50
accent
#E840C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #381F93

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

Preview Lab → · Contrast checker → · Palette generator →

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