#381D98#381D98

#381D98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.183 H 282.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#381D98
RGBrgb(56, 29, 152)
HSLhsl(253, 68%, 35%)
HSVhsv(253, 81%, 60%)
CMYKcmyk(63.2%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.62, 45.89, -61.91)
CIE-LCHlch(23.62, 77.06, 306.55°)
OKLaboklab(36.23% 0.0392 -0.1786)
OKLCHoklch(36.23% 0.183 282.4)
XYZxyz(7.7360, 3.9859, 30.0614)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D98 #7D981D
analogous
#1D3F98 #381D98 #751D98
triadic
#381D98 #98381D #1D9838
tetradic
#381D98 #981D3F #7D981D #1D9875
square
#381D98 #981D3F #7D981D #1D9875
split-complementary
#381D98 #98751D #3F981D
monochromatic
#120931 #251365 #381D98 #4B27CB #7052DE

Accessibility & contrast

On white

11.68
#381D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D98
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D98#FFFFFF#000000##FFFFFF
##381D981.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.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: #381d98;
/* rgb */ color: rgb(56, 29, 152);
/* oklch */ color: oklch(36.2% 0.183 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#381d98',
    950: '#000000',
  },
}
SCSS
$custom: #381d98;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381d98",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 253.171,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36227,
    "c": 0.18282,
    "h": 282.4
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#381D98
secondary
#A8C150
accent
#EB3DC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381D98

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

Preview Lab → · Contrast checker → · Palette generator →

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