#381B95#381B95

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

Color values

HEX#381B95
RGBrgb(56, 27, 149)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 58%)
CMYKcmyk(62.4%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.98, 45.93, -61.13)
CIE-LCHlch(22.98, 76.46, 306.92°)
OKLaboklab(35.68% 0.0413 -0.1763)
OKLCHoklch(35.68% 0.181 283.2)
XYZxyz(7.4460, 3.7940, 28.7679)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B95 #78951B
analogous
#1B3B95 #381B95 #751B95
triadic
#381B95 #95381B #1B9538
tetradic
#381B95 #951B3B #78951B #1B9575
square
#381B95 #951B3B #78951B #1B9575
split-complementary
#381B95 #95751B #3B951B
monochromatic
#11082D #251261 #381B95 #4B24C9 #6F4CDF

Accessibility & contrast

On white

11.94
#381B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#381B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B95
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B95#FFFFFF#000000##FFFFFF
##381B951.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381b95;
/* rgb */ color: rgb(56, 27, 149);
/* oklch */ color: oklch(35.7% 0.181 283.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#381b95',
    950: '#000000',
  },
}
SCSS
$custom: #381b95;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381b95",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 254.262,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35682,
    "c": 0.18105,
    "h": 283.2
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#381B95
secondary
#A5C14B
accent
#EC3CC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381B95

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

Preview Lab → · Contrast checker → · Palette generator →

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