#381A90#381A90

#381A90 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 284.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#381A90
RGBrgb(56, 26, 144)
HSLhsl(255, 69%, 33%)
HSVhsv(255, 82%, 56%)
CMYKcmyk(61.1%, 81.9%, 0%, 43.5%)
CIE-LABlab(22.28, 44.93, -59.19)
CIE-LCHlch(22.28, 74.31, 307.20°)
OKLaboklab(35.03% 0.0435 -0.1706)
OKLCHoklch(35.03% 0.176 284.3)
XYZxyz(7.0328, 3.5927, 26.7030)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A90 #72901A
analogous
#1A3790 #381A90 #731A90
triadic
#381A90 #90381A #1A9038
tetradic
#381A90 #901A37 #72901A #1A9073
square
#381A90 #901A37 #72901A #1A9073
split-complementary
#381A90 #90731A #37901A
monochromatic
#100728 #24115C #381A90 #4C23C4 #6D47DE

Accessibility & contrast

On white

12.22
#381A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A90
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A90#FFFFFF#000000##FFFFFF
##381A901.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381a90;
/* rgb */ color: rgb(56, 26, 144);
/* oklch */ color: oklch(35.0% 0.176 284.3);
Tailwind
colors: {
  custom: {
    50: '#7b5cb2',
    500: '#381a90',
    950: '#000000',
  },
}
SCSS
$custom: #381a90;
$custom-light: #7b5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381a90",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 255.254,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35034,
    "c": 0.17608,
    "h": 284.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#381A90
secondary
#A1BF47
accent
#EC3CBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381A90

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

Preview Lab → · Contrast checker → · Palette generator →

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