#381785#381785

#381785 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.166 H 287.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#381785
RGBrgb(56, 23, 133)
HSLhsl(258, 71%, 31%)
HSVhsv(258, 83%, 52%)
CMYKcmyk(57.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.62, 43.09, -55.04)
CIE-LCHlch(20.62, 69.91, 308.06°)
OKLaboklab(33.53% 0.0492 -0.1585)
OKLCHoklch(33.53% 0.166 287.2)
XYZxyz(6.1697, 3.1467, 22.4680)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381785 #648517
analogous
#172D85 #381785 #6F1785
triadic
#381785 #853817 #178538
tetradic
#381785 #85172D #648517 #17856F
square
#381785 #85172D #648517 #17856F
split-complementary
#381785 #856F17 #2D8517
monochromatic
#0C051D #220E51 #381785 #4E20B9 #6B3ADD

Accessibility & contrast

On white

12.89
#381785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381785
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381785#FFFFFF#000000##FFFFFF
##3817851.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#14384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381785;
/* rgb */ color: rgb(56, 23, 133);
/* oklch */ color: oklch(33.5% 0.166 287.2);
Tailwind
colors: {
  custom: {
    50: '#7959aa',
    500: '#381785',
    950: '#000000',
  },
}
SCSS
$custom: #381785;
$custom-light: #7959aa;
$custom-dark: #000000;
JSON
{
  "hex": "#381785",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 258,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33535,
    "c": 0.16593,
    "h": 287.2
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#381785
secondary
#94B93F
accent
#ED3BB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381785

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

Preview Lab → · Contrast checker → · Palette generator →

#381785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva