#381B94#381B94

#381B94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.180 H 283.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#381B94
RGBrgb(56, 27, 148)
HSLhsl(254, 69%, 34%)
HSVhsv(254, 82%, 58%)
CMYKcmyk(62.2%, 81.8%, 0%, 42%)
CIE-LABlab(22.87, 45.64, -60.69)
CIE-LCHlch(22.87, 75.94, 306.94°)
OKLaboklab(35.57% 0.0416 -0.175)
OKLCHoklch(35.57% 0.18 283.4)
XYZxyz(7.3665, 3.7622, 28.3492)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B94 #77941B
analogous
#1B3B94 #381B94 #751B94
triadic
#381B94 #94381B #1B9438
tetradic
#381B94 #941B3B #77941B #1B9475
square
#381B94 #941B3B #77941B #1B9475
split-complementary
#381B94 #94751B #3B941B
monochromatic
#11082C #241260 #381B94 #4C24C8 #6E4BDE

Accessibility & contrast

On white

11.98
#381B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B94
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B94#FFFFFF#000000##FFFFFF
##381B941.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381b94;
/* rgb */ color: rgb(56, 27, 148);
/* oklch */ color: oklch(35.6% 0.180 283.4);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#381b94',
    950: '#000000',
  },
}
SCSS
$custom: #381b94;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381b94",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 254.38,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35574,
    "c": 0.17989,
    "h": 283.4
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#381B94
secondary
#A4C04B
accent
#EC3CC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381B94

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

Preview Lab → · Contrast checker → · Palette generator →

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