#381B90#381B90

#381B90 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.175 H 284.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#381B90
RGBrgb(56, 27, 144)
HSLhsl(255, 68%, 34%)
HSVhsv(255, 81%, 56%)
CMYKcmyk(61.1%, 81.3%, 0%, 43.5%)
CIE-LABlab(22.44, 44.46, -58.93)
CIE-LCHlch(22.44, 73.82, 307.03°)
OKLaboklab(35.14% 0.0429 -0.1699)
OKLCHoklch(35.14% 0.175 284.2)
XYZxyz(7.0553, 3.6378, 26.7105)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B90 #73901B
analogous
#1B3890 #381B90 #721B90
triadic
#381B90 #90381B #1B9038
tetradic
#381B90 #901B38 #73901B #1B9072
square
#381B90 #901B38 #73901B #1B9072
split-complementary
#381B90 #90721B #38901B
monochromatic
#100829 #24115C #381B90 #4C25C4 #6D49DD

Accessibility & contrast

On white

12.16
#381B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B90
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B90#FFFFFF#000000##FFFFFF
##381B901.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.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: #381b90;
/* rgb */ color: rgb(56, 27, 144);
/* oklch */ color: oklch(35.1% 0.175 284.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cb2',
    500: '#381b90',
    950: '#000000',
  },
}
SCSS
$custom: #381b90;
$custom-light: #7b5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381b90",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 254.872,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35145,
    "c": 0.17521,
    "h": 284.2
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#381B90
secondary
#A1BF48
accent
#EB3DC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381B90

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

Preview Lab → · Contrast checker → · Palette generator →

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