#381B9C#381B9C

#381B9C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.189 H 281.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#381B9C
RGBrgb(56, 27, 156)
HSLhsl(253, 70%, 36%)
HSVhsv(253, 83%, 61%)
CMYKcmyk(64.1%, 82.7%, 0%, 38.8%)
CIE-LABlab(23.75, 47.98, -64.16)
CIE-LCHlch(23.75, 80.11, 306.79°)
OKLaboklab(36.45% 0.0389 -0.1851)
OKLCHoklch(36.45% 0.189 281.9)
XYZxyz(8.0217, 4.0243, 31.8001)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B9C #7F9C1B
analogous
#1B3F9C #381B9C #781B9C
triadic
#381B9C #9C381B #1B9C38
tetradic
#381B9C #9C1B3F #7F9C1B #1B9C78
square
#381B9C #9C1B3F #7F9C1B #1B9C78
split-complementary
#381B9C #9C781B #3F9C1B
monochromatic
#130934 #251268 #381B9C #4B24D0 #7151E1

Accessibility & contrast

On white

11.63
#381B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#381B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B9C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B9C#FFFFFF#000000##FFFFFF
##381B9C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381b9c;
/* rgb */ color: rgb(56, 27, 156);
/* oklch */ color: oklch(36.4% 0.189 281.9);
Tailwind
colors: {
  custom: {
    50: '#7d5dba',
    500: '#381b9c',
    950: '#000000',
  },
}
SCSS
$custom: #381b9c;
$custom-light: #7d5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#381b9c",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 253.488,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36445,
    "c": 0.18915,
    "h": 281.9
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#381B9C
secondary
#A9C34F
accent
#ED3BC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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