#381F99#381F99

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

Color values

HEX#381F99
RGBrgb(56, 31, 153)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(63.4%, 79.7%, 0%, 40%)
CIE-LABlab(24.06, 45.23, -61.80)
CIE-LCHlch(24.06, 76.58, 306.20°)
OKLaboklab(36.57% 0.0377 -0.1783)
OKLCHoklch(36.57% 0.182 281.9)
XYZxyz(7.8688, 4.1201, 30.5114)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F99 #80991F
analogous
#1F4399 #381F99 #751F99
triadic
#381F99 #99381F #1F9938
tetradic
#381F99 #991F43 #80991F #1F9975
square
#381F99 #991F43 #80991F #1F9975
split-complementary
#381F99 #99751F #43991F
monochromatic
#130A33 #251566 #381F99 #4B29CC #7156DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381F99#FFFFFF#000000##FFFFFF
##381F991.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)
#003D9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381f99;
/* rgb */ color: rgb(56, 31, 153);
/* oklch */ color: oklch(36.6% 0.182 281.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fb8',
    500: '#381f99',
    950: '#000000',
  },
}
SCSS
$custom: #381f99;
$custom-light: #7c5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381f99",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 252.295,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36565,
    "c": 0.18222,
    "h": 281.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#381F99
secondary
#AAC054
accent
#E93FC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381F99

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

Preview Lab → · Contrast checker → · Palette generator →

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