#381F85#381F85

#381F85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.158 H 285.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#381F85
RGBrgb(56, 31, 133)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(57.9%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.99, 39.15, -52.79)
CIE-LCHlch(21.99, 65.72, 306.56°)
OKLaboklab(34.49% 0.0434 -0.1519)
OKLCHoklch(34.49% 0.158 285.9)
XYZxyz(6.3532, 3.5138, 22.5292)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F85 #6C851F
analogous
#1F3985 #381F85 #6B1F85
triadic
#381F85 #85381F #1F8538
tetradic
#381F85 #851F39 #6C851F #1F856B
square
#381F85 #851F39 #6C851F #1F856B
split-complementary
#381F85 #856B1F #39851F
monochromatic
#0E0822 #231353 #381F85 #4D2BB7 #6C4AD5

Accessibility & contrast

On white

12.33
#381F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#381F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F85
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F85#FFFFFF#000000##FFFFFF
##381F851.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#133B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381f85;
/* rgb */ color: rgb(56, 31, 133);
/* oklch */ color: oklch(34.5% 0.158 285.9);
Tailwind
colors: {
  custom: {
    50: '#785ea9',
    500: '#381f85',
    950: '#000000',
  },
}
SCSS
$custom: #381f85;
$custom-light: #785ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#381f85",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 254.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.15802,
    "h": 285.9
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#381F85
secondary
#9CB749
accent
#E543BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F85

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

Preview Lab → · Contrast checker → · Palette generator →

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