#381685#381685

#381685 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.167 H 287.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#381685
RGBrgb(56, 22, 133)
HSLhsl(258, 72%, 30%)
HSVhsv(258, 83%, 52%)
CMYKcmyk(57.9%, 83.5%, 0%, 47.8%)
CIE-LABlab(20.47, 43.53, -55.29)
CIE-LCHlch(20.47, 70.38, 308.21°)
OKLaboklab(33.43% 0.0498 -0.1592)
OKLCHoklch(33.43% 0.167 287.4)
XYZxyz(6.1502, 3.1077, 22.4615)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381685 #638516
analogous
#162C85 #381685 #6F1685
triadic
#381685 #853816 #168538
tetradic
#381685 #85162C #638516 #16856F
square
#381685 #85162C #638516 #16856F
split-complementary
#381685 #856F16 #2C8516
monochromatic
#0C051C #220D50 #381685 #4E1FBA #6A37DE

Accessibility & contrast

On white

12.95
#381685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381685
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381685#FFFFFF#000000##FFFFFF
##3816851.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#14384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381685;
/* rgb */ color: rgb(56, 22, 133);
/* oklch */ color: oklch(33.4% 0.167 287.4);
Tailwind
colors: {
  custom: {
    50: '#7959aa',
    500: '#381685',
    950: '#000000',
  },
}
SCSS
$custom: #381685;
$custom-light: #7959aa;
$custom-dark: #000000;
JSON
{
  "hex": "#381685",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 258.378,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3343,
    "c": 0.16681,
    "h": 287.4
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#381685
secondary
#93B93E
accent
#EE39B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381685

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

Preview Lab → · Contrast checker → · Palette generator →

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