#381D90#381D90

#381D90 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.173 H 283.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#381D90
RGBrgb(56, 29, 144)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(61.1%, 79.9%, 0%, 43.5%)
CIE-LABlab(22.77, 43.50, -58.38)
CIE-LCHlch(22.77, 72.81, 306.69°)
OKLaboklab(35.38% 0.0417 -0.1683)
OKLCHoklch(35.38% 0.173 283.9)
XYZxyz(7.1027, 3.7326, 26.7263)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D90 #75901D
analogous
#1D3C90 #381D90 #721D90
triadic
#381D90 #90381D #1D9038
tetradic
#381D90 #901D3C #75901D #1D9072
square
#381D90 #901D3C #75901D #1D9072
split-complementary
#381D90 #90721D #3C901D
monochromatic
#10082A #24135D #381D90 #4C27C3 #6E4CDB

Accessibility & contrast

On white

12.02
#381D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D90
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D90#FFFFFF#000000##FFFFFF
##381D901.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381d90;
/* rgb */ color: rgb(56, 29, 144);
/* oklch */ color: oklch(35.4% 0.173 283.9);
Tailwind
colors: {
  custom: {
    50: '#7a5db2',
    500: '#381d90',
    950: '#000000',
  },
}
SCSS
$custom: #381d90;
$custom-light: #7a5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#381d90",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 254.087,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.17338,
    "h": 283.9
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#381D90
secondary
#A3BD4B
accent
#E93EC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381D90

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

Preview Lab → · Contrast checker → · Palette generator →

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