#381D89#381D89

#381D89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.165 H 285.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#381D89
RGBrgb(56, 29, 137)
HSLhsl(255, 65%, 33%)
HSVhsv(255, 79%, 54%)
CMYKcmyk(59.1%, 78.8%, 0%, 46.3%)
CIE-LABlab(22.04, 41.40, -55.23)
CIE-LCHlch(22.04, 69.02, 306.86°)
OKLaboklab(34.64% 0.0438 -0.1591)
OKLCHoklch(34.64% 0.165 285.4)
XYZxyz(6.5842, 3.5252, 23.9955)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D89 #6E891D
analogous
#1D3889 #381D89 #6E1D89
triadic
#381D89 #89381D #1D8938
tetradic
#381D89 #891D38 #6E891D #1D896E
square
#381D89 #891D38 #6E891D #1D896E
split-complementary
#381D89 #896E1D #38891D
monochromatic
#0F0824 #231256 #381D89 #4D28BC #6C48D8

Accessibility & contrast

On white

12.32
#381D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D89
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D89#FFFFFF#000000##FFFFFF
##381D891.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#0D3C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381d89;
/* rgb */ color: rgb(56, 29, 137);
/* oklch */ color: oklch(34.6% 0.165 285.4);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#381d89',
    950: '#000000',
  },
}
SCSS
$custom: #381d89;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#381d89",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 255,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34645,
    "c": 0.16499,
    "h": 285.4
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#381D89
secondary
#9EBA47
accent
#E840BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D89

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

Preview Lab → · Contrast checker → · Palette generator →

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