#381683#381683

#381683 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 287.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#381683
RGBrgb(56, 22, 131)
HSLhsl(259, 71%, 30%)
HSVhsv(259, 83%, 51%)
CMYKcmyk(57.3%, 83.2%, 0%, 48.6%)
CIE-LABlab(20.25, 42.96, -54.39)
CIE-LCHlch(20.25, 69.31, 308.31°)
OKLaboklab(33.22% 0.0505 -0.1565)
OKLCHoklch(33.22% 0.165 287.9)
XYZxyz(6.0133, 3.0529, 21.7407)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381683 #618316
analogous
#162A83 #381683 #6F1683
triadic
#381683 #833816 #168338
tetradic
#381683 #83162A #618316 #16836F
square
#381683 #83162A #618316 #16836F
split-complementary
#381683 #836F16 #2A8316
monochromatic
#0B041A #220D4F #381683 #4E1FB7 #6A36DD

Accessibility & contrast

On white

13.04
#381683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381683
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381683#FFFFFF#000000##FFFFFF
##3816831.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#17374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381683;
/* rgb */ color: rgb(56, 22, 131);
/* oklch */ color: oklch(33.2% 0.165 287.9);
Tailwind
colors: {
  custom: {
    50: '#7859a8',
    500: '#381683',
    950: '#000000',
  },
}
SCSS
$custom: #381683;
$custom-light: #7859a8;
$custom-dark: #000000;
JSON
{
  "hex": "#381683",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 258.716,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.1645,
    "h": 287.9
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#381683
secondary
#91B73D
accent
#EE3AB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381683

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

Preview Lab → · Contrast checker → · Palette generator →

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