#381D99#381D99

#381D99 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.184 H 282.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#381D99
RGBrgb(56, 29, 153)
HSLhsl(253, 68%, 36%)
HSVhsv(253, 81%, 60%)
CMYKcmyk(63.4%, 81%, 0%, 40%)
CIE-LABlab(23.73, 46.19, -62.35)
CIE-LCHlch(23.73, 77.59, 306.53°)
OKLaboklab(36.34% 0.0388 -0.1798)
OKLCHoklch(36.34% 0.184 282.2)
XYZxyz(7.8182, 4.0188, 30.4945)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D99 #7E991D
analogous
#1D4099 #381D99 #761D99
triadic
#381D99 #99381D #1D9938
tetradic
#381D99 #991D40 #7E991D #1D9976
square
#381D99 #991D40 #7E991D #1D9976
split-complementary
#381D99 #99761D #40991D
monochromatic
#120932 #251366 #381D99 #4B27CC #7152DE

Accessibility & contrast

On white

11.64
#381D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D99
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D99#FFFFFF#000000##FFFFFF
##381D991.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381d99;
/* rgb */ color: rgb(56, 29, 153);
/* oklch */ color: oklch(36.3% 0.184 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#381d99',
    950: '#000000',
  },
}
SCSS
$custom: #381d99;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381d99",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 253.065,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.184,
    "h": 282.2
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#381D99
secondary
#A9C151
accent
#EB3DC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381D99

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

Preview Lab → · Contrast checker → · Palette generator →

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