#381672#381672

#381672 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.145 H 292.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#381672
RGBrgb(56, 22, 114)
HSLhsl(262, 68%, 27%)
HSVhsv(262, 81%, 45%)
CMYKcmyk(50.9%, 80.7%, 0%, 55.3%)
CIE-LABlab(18.49, 38.09, -46.42)
CIE-LCHlch(18.49, 60.05, 309.37°)
OKLaboklab(31.46% 0.0562 -0.1332)
OKLCHoklch(31.46% 0.145 292.9)
XYZxyz(4.9542, 2.6293, 16.1628)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381672 #507216
analogous
#162272 #381672 #661672
triadic
#381672 #723816 #167238
tetradic
#381672 #721622 #507216 #167266
square
#381672 #721622 #507216 #167266
split-complementary
#381672 #726616 #227216
monochromatic
#0D051A #1F0C3F #381672 #5120A5 #6B2CD6

Accessibility & contrast

On white

13.76
#381672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381672
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381672#FFFFFF#000000##FFFFFF
##3816721.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#263043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381672;
/* rgb */ color: rgb(56, 22, 114);
/* oklch */ color: oklch(31.5% 0.145 292.9);
Tailwind
colors: {
  custom: {
    50: '#76589b',
    500: '#381672',
    950: '#000000',
  },
}
SCSS
$custom: #381672;
$custom-light: #76589b;
$custom-dark: #000000;
JSON
{
  "hex": "#381672",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 262.174,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31462,
    "c": 0.14463,
    "h": 292.9
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#381672
secondary
#80A83C
accent
#EB3DAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381672

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

Preview Lab → · Contrast checker → · Palette generator →

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