#381B92#381B92

#381B92 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.178 H 283.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#381B92
RGBrgb(56, 27, 146)
HSLhsl(255, 69%, 34%)
HSVhsv(255, 82%, 57%)
CMYKcmyk(61.6%, 81.5%, 0%, 42.7%)
CIE-LABlab(22.65, 45.05, -59.81)
CIE-LCHlch(22.65, 74.88, 306.99°)
OKLaboklab(35.36% 0.0423 -0.1724)
OKLCHoklch(35.36% 0.178 283.8)
XYZxyz(7.2095, 3.6995, 27.5227)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B92 #75921B
analogous
#1B3A92 #381B92 #741B92
triadic
#381B92 #92381B #1B9238
tetradic
#381B92 #921B3A #75921B #1B9274
square
#381B92 #921B3A #75921B #1B9274
split-complementary
#381B92 #92741B #3A921B
monochromatic
#10082B #24115E #381B92 #4C25C6 #6E4ADE

Accessibility & contrast

On white

12.07
#381B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B92
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B92#FFFFFF#000000##FFFFFF
##381B921.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381b92;
/* rgb */ color: rgb(56, 27, 146);
/* oklch */ color: oklch(35.4% 0.178 283.8);
Tailwind
colors: {
  custom: {
    50: '#7b5cb3',
    500: '#381b92',
    950: '#000000',
  },
}
SCSS
$custom: #381b92;
$custom-light: #7b5cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#381b92",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 254.622,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35359,
    "c": 0.17755,
    "h": 283.8
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#381B92
secondary
#A3BF49
accent
#EC3CC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381B92

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

Preview Lab → · Contrast checker → · Palette generator →

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