#381D9C#381D9C

#381D9C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.188 H 281.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#381D9C
RGBrgb(56, 29, 156)
HSLhsl(253, 69%, 36%)
HSVhsv(253, 81%, 61%)
CMYKcmyk(64.1%, 81.4%, 0%, 38.8%)
CIE-LABlab(24.06, 47.07, -63.64)
CIE-LCHlch(24.06, 79.16, 306.49°)
OKLaboklab(36.66% 0.0379 -0.1836)
OKLCHoklch(36.66% 0.188 281.7)
XYZxyz(8.0691, 4.1192, 31.8159)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D9C #819C1D
analogous
#1D429C #381D9C #781D9C
triadic
#381D9C #9C381D #1D9C38
tetradic
#381D9C #9C1D42 #819C1D #1D9C78
square
#381D9C #9C1D42 #819C1D #1D9C78
split-complementary
#381D9C #9C781D #429C1D
monochromatic
#130A35 #251368 #381D9C #4B27D0 #7254DF

Accessibility & contrast

On white

11.51
#381D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#381D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D9C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D9C#FFFFFF#000000##FFFFFF
##381D9C1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d9c;
/* rgb */ color: rgb(56, 29, 156);
/* oklch */ color: oklch(36.7% 0.188 281.7);
Tailwind
colors: {
  custom: {
    50: '#7d5eba',
    500: '#381d9c',
    950: '#000000',
  },
}
SCSS
$custom: #381d9c;
$custom-light: #7d5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#381d9c",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 252.756,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36659,
    "c": 0.1875,
    "h": 281.7
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#381D9C
secondary
#ABC252
accent
#EB3CC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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