#381C90#381C90

#381C90 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.174 H 284.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#381C90
RGBrgb(56, 28, 144)
HSLhsl(254, 67%, 34%)
HSVhsv(254, 81%, 56%)
CMYKcmyk(61.1%, 80.6%, 0%, 43.5%)
CIE-LABlab(22.60, 43.99, -58.66)
CIE-LCHlch(22.60, 73.32, 306.87°)
OKLaboklab(35.26% 0.0423 -0.1691)
OKLCHoklch(35.26% 0.174 284)
XYZxyz(7.0786, 3.6844, 26.7183)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C90 #74901C
analogous
#1C3A90 #381C90 #721C90
triadic
#381C90 #90381C #1C9038
tetradic
#381C90 #901C3A #74901C #1C9072
square
#381C90 #901C3A #74901C #1C9072
split-complementary
#381C90 #90721C #3A901C
monochromatic
#10082A #24125D #381C90 #4C26C3 #6E4ADC

Accessibility & contrast

On white

12.09
#381C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#381C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C90
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C90#FFFFFF#000000##FFFFFF
##381C901.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381c90;
/* rgb */ color: rgb(56, 28, 144);
/* oklch */ color: oklch(35.3% 0.174 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a5db2',
    500: '#381c90',
    950: '#000000',
  },
}
SCSS
$custom: #381c90;
$custom-light: #7a5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#381c90",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 254.483,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35259,
    "c": 0.1743,
    "h": 284
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#381C90
secondary
#A2BE4A
accent
#EA3DC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381C90

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

Preview Lab → · Contrast checker → · Palette generator →

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