#381B96#381B96

#381B96 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.182 H 283.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#381B96
RGBrgb(56, 27, 150)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 59%)
CMYKcmyk(62.7%, 82%, 0%, 41.2%)
CIE-LABlab(23.09, 46.22, -61.57)
CIE-LCHlch(23.09, 76.99, 306.90°)
OKLaboklab(35.79% 0.0409 -0.1776)
OKLCHoklch(35.79% 0.182 283)
XYZxyz(7.5261, 3.8261, 29.1902)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B96 #79961B
analogous
#1B3C96 #381B96 #751B96
triadic
#381B96 #96381B #1B9638
tetradic
#381B96 #961B3C #79961B #1B9675
square
#381B96 #961B3C #79961B #1B9675
split-complementary
#381B96 #96751B #3C961B
monochromatic
#11082E #251262 #381B96 #4B24CA #6F4DDF

Accessibility & contrast

On white

11.90
#381B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B96
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B96#FFFFFF#000000##FFFFFF
##381B961.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381b96;
/* rgb */ color: rgb(56, 27, 150);
/* oklch */ color: oklch(35.8% 0.182 283.0);
Tailwind
colors: {
  custom: {
    50: '#7c5db6',
    500: '#381b96',
    950: '#000000',
  },
}
SCSS
$custom: #381b96;
$custom-light: #7c5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#381b96",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 254.146,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.18221,
    "h": 283
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#381B96
secondary
#A5C14C
accent
#EC3BC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381B96

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

Preview Lab → · Contrast checker → · Palette generator →

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