#381872#381872

#381872 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.142 H 292.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#381872
RGBrgb(56, 24, 114)
HSLhsl(261, 65%, 27%)
HSVhsv(261, 79%, 45%)
CMYKcmyk(50.9%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.84, 37.11, -45.86)
CIE-LCHlch(18.84, 58.99, 308.98°)
OKLaboklab(31.7% 0.0545 -0.1316)
OKLCHoklch(31.7% 0.142 292.5)
XYZxyz(4.9939, 2.7087, 16.1760)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381872 #527218
analogous
#182572 #381872 #651872
triadic
#381872 #723818 #187238
tetradic
#381872 #721825 #527218 #187265
square
#381872 #721825 #527218 #187265
split-complementary
#381872 #726518 #257218
monochromatic
#0C0519 #1F0D3F #381872 #5123A5 #6B31D4

Accessibility & contrast

On white

13.62
#381872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381872
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381872#FFFFFF#000000##FFFFFF
##3818721.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#253144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381872;
/* rgb */ color: rgb(56, 24, 114);
/* oklch */ color: oklch(31.7% 0.142 292.5);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#381872',
    950: '#000000',
  },
}
SCSS
$custom: #381872;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#381872",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 261.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31703,
    "c": 0.14246,
    "h": 292.5
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#381872
secondary
#82A73E
accent
#E840AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381872

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

Preview Lab → · Contrast checker → · Palette generator →

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