#381990#381990

#381990 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.177 H 284.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#381990
RGBrgb(56, 25, 144)
HSLhsl(256, 70%, 33%)
HSVhsv(256, 83%, 56%)
CMYKcmyk(61.1%, 82.6%, 0%, 43.5%)
CIE-LABlab(22.12, 45.38, -59.45)
CIE-LCHlch(22.12, 74.79, 307.35°)
OKLaboklab(34.93% 0.0441 -0.1714)
OKLCHoklch(34.93% 0.177 284.4)
XYZxyz(7.0110, 3.5492, 26.6958)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381990 #719019
analogous
#193690 #381990 #731990
triadic
#381990 #903819 #199038
tetradic
#381990 #901936 #719019 #199073
square
#381990 #901936 #719019 #199073
split-complementary
#381990 #907319 #369019
monochromatic
#0F0728 #24105C #381990 #4C22C4 #6D45DF

Accessibility & contrast

On white

12.28
#381990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381990
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381990#FFFFFF#000000##FFFFFF
##3819901.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381990;
/* rgb */ color: rgb(56, 25, 144);
/* oklch */ color: oklch(34.9% 0.177 284.4);
Tailwind
colors: {
  custom: {
    50: '#7b5bb2',
    500: '#381990',
    950: '#000000',
  },
}
SCSS
$custom: #381990;
$custom-light: #7b5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381990",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 255.63,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34927,
    "c": 0.17695,
    "h": 284.4
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#381990
secondary
#A0C045
accent
#ED3BBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381990

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

Preview Lab → · Contrast checker → · Palette generator →

#381990 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva