#381671#381671

#381671 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.143 H 293.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#381671
RGBrgb(56, 22, 113)
HSLhsl(262, 67%, 26%)
HSVhsv(262, 81%, 44%)
CMYKcmyk(50.4%, 80.5%, 0%, 55.7%)
CIE-LABlab(18.39, 37.81, -45.94)
CIE-LCHlch(18.39, 59.50, 309.45°)
OKLaboklab(31.36% 0.0566 -0.1318)
OKLCHoklch(31.36% 0.143 293.2)
XYZxyz(4.8976, 2.6067, 15.8647)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381671 #4F7116
analogous
#162271 #381671 #661671
triadic
#381671 #713816 #167138
tetradic
#381671 #711622 #4F7116 #167166
square
#381671 #711622 #4F7116 #167166
split-complementary
#381671 #716616 #227116
monochromatic
#0D051A #1F0C3E #381671 #5120A4 #6B2CD6

Accessibility & contrast

On white

13.80
#381671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381671
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381671#FFFFFF#000000##FFFFFF
##3816711.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#262F43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381671;
/* rgb */ color: rgb(56, 22, 113);
/* oklch */ color: oklch(31.4% 0.143 293.2);
Tailwind
colors: {
  custom: {
    50: '#75589b',
    500: '#381671',
    950: '#000000',
  },
}
SCSS
$custom: #381671;
$custom-light: #75589b;
$custom-dark: #000000;
JSON
{
  "hex": "#381671",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 262.418,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31362,
    "c": 0.14345,
    "h": 293.2
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#381671
secondary
#7FA73C
accent
#EA3EAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381671

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

Preview Lab → · Contrast checker → · Palette generator →

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