#381F89#381F89

#381F89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.163 H 285.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#381F89
RGBrgb(56, 31, 137)
HSLhsl(254, 63%, 33%)
HSVhsv(254, 77%, 54%)
CMYKcmyk(59.1%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.40, 40.37, -54.63)
CIE-LCHlch(22.40, 67.93, 306.46°)
OKLaboklab(34.9% 0.0423 -0.1574)
OKLCHoklch(34.9% 0.163 285)
XYZxyz(6.6349, 3.6265, 24.0124)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F89 #70891F
analogous
#1F3B89 #381F89 #6D1F89
triadic
#381F89 #89381F #1F8938
tetradic
#381F89 #891F3B #70891F #1F896D
square
#381F89 #891F3B #70891F #1F896D
split-complementary
#381F89 #896D1F #3B891F
monochromatic
#0F0825 #241457 #381F89 #4C2ABB #6D4CD6

Accessibility & contrast

On white

12.17
#381F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F89
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F89#FFFFFF#000000##FFFFFF
##381F891.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#0D3D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381f89;
/* rgb */ color: rgb(56, 31, 137);
/* oklch */ color: oklch(34.9% 0.163 285.0);
Tailwind
colors: {
  custom: {
    50: '#795eac',
    500: '#381f89',
    950: '#000000',
  },
}
SCSS
$custom: #381f89;
$custom-light: #795eac;
$custom-dark: #000000;
JSON
{
  "hex": "#381f89",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 254.151,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34898,
    "c": 0.16294,
    "h": 285
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#381F89
secondary
#9FB94B
accent
#E642BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F89

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

Preview Lab → · Contrast checker → · Palette generator →

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