#381E99#381E99

#381E99 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.183 H 282.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#381E99
RGBrgb(56, 30, 153)
HSLhsl(253, 67%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(63.4%, 80.4%, 0%, 40%)
CIE-LABlab(23.90, 45.71, -62.08)
CIE-LCHlch(23.90, 77.09, 306.37°)
OKLaboklab(36.45% 0.0383 -0.1791)
OKLCHoklch(36.45% 0.183 282.1)
XYZxyz(7.8431, 4.0686, 30.5028)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E99 #7F991E
analogous
#1E4199 #381E99 #751E99
triadic
#381E99 #99381E #1E9938
tetradic
#381E99 #991E41 #7F991E #1E9975
square
#381E99 #991E41 #7F991E #1E9975
split-complementary
#381E99 #99751E #41991E
monochromatic
#130A33 #251466 #381E99 #4B28CC #7154DD

Accessibility & contrast

On white

11.58
#381E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E99
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E99#FFFFFF#000000##FFFFFF
##381E991.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381e99;
/* rgb */ color: rgb(56, 30, 153);
/* oklch */ color: oklch(36.4% 0.183 282.1);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#381e99',
    950: '#000000',
  },
}
SCSS
$custom: #381e99;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381e99",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 252.683,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36448,
    "c": 0.18312,
    "h": 282.1
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#381E99
secondary
#A9C152
accent
#EA3EC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E99

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

Preview Lab → · Contrast checker → · Palette generator →

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