#381C98#381C98

#381C98 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.184 H 282.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#381C98
RGBrgb(56, 28, 152)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(63.2%, 81.6%, 0%, 40.4%)
CIE-LABlab(23.46, 46.35, -62.18)
CIE-LCHlch(23.46, 77.55, 306.71°)
OKLaboklab(36.12% 0.0397 -0.1793)
OKLCHoklch(36.12% 0.184 282.5)
XYZxyz(7.7119, 3.9377, 30.0533)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C98 #7C981C
analogous
#1C3E98 #381C98 #761C98
triadic
#381C98 #98381C #1C9838
tetradic
#381C98 #981C3E #7C981C #1C9876
square
#381C98 #981C3E #7C981C #1C9876
split-complementary
#381C98 #98761C #3E981C
monochromatic
#120931 #251264 #381C98 #4B26CC #7050DF

Accessibility & contrast

On white

11.75
#381C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C98
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C98#FFFFFF#000000##FFFFFF
##381C981.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381c98;
/* rgb */ color: rgb(56, 28, 152);
/* oklch */ color: oklch(36.1% 0.184 282.5);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#381c98',
    950: '#000000',
  },
}
SCSS
$custom: #381c98;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#381c98",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 253.548,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36116,
    "c": 0.18369,
    "h": 282.5
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#381C98
secondary
#A7C14E
accent
#EC3CC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381C98

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

Preview Lab → · Contrast checker → · Palette generator →

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