#381E90#381E90

#381E90 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.172 H 283.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#381E90
RGBrgb(56, 30, 144)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 79%, 56%)
CMYKcmyk(61.1%, 79.2%, 0%, 43.5%)
CIE-LABlab(22.94, 43.01, -58.10)
CIE-LCHlch(22.94, 72.29, 306.51°)
OKLaboklab(35.49% 0.041 -0.1675)
OKLCHoklch(35.49% 0.172 283.8)
XYZxyz(7.1277, 3.7824, 26.7346)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E90 #76901E
analogous
#1E3D90 #381E90 #711E90
triadic
#381E90 #90381E #1E9038
tetradic
#381E90 #901E3D #76901E #1E9071
square
#381E90 #901E3D #76901E #1E9071
split-complementary
#381E90 #90711E #3D901E
monochromatic
#11092B #24135D #381E90 #4C29C3 #6E4EDA

Accessibility & contrast

On white

11.95
#381E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#381E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E90
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E90#FFFFFF#000000##FFFFFF
##381E901.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e90;
/* rgb */ color: rgb(56, 30, 144);
/* oklch */ color: oklch(35.5% 0.172 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a5eb2',
    500: '#381e90',
    950: '#000000',
  },
}
SCSS
$custom: #381e90;
$custom-light: #7a5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381e90",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 253.684,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35495,
    "c": 0.17242,
    "h": 283.8
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#381E90
secondary
#A3BD4D
accent
#E83FC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E90

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

Preview Lab → · Contrast checker → · Palette generator →

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