#381877#381877

#381877 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.148 H 290.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#381877
RGBrgb(56, 24, 119)
HSLhsl(260, 66%, 28%)
HSVhsv(260, 80%, 47%)
CMYKcmyk(52.9%, 79.8%, 0%, 53.3%)
CIE-LABlab(19.33, 38.56, -48.27)
CIE-LCHlch(19.33, 61.78, 308.62°)
OKLaboklab(32.2% 0.053 -0.1387)
OKLCHoklch(32.2% 0.148 290.9)
XYZxyz(5.2863, 2.8257, 17.7161)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381877 #577718
analogous
#182777 #381877 #681877
triadic
#381877 #773818 #187738
tetradic
#381877 #771827 #577718 #187768
square
#381877 #771827 #577718 #187768
split-complementary
#381877 #776818 #277718
monochromatic
#0C0519 #200E44 #381877 #5022AA #6A33D6

Accessibility & contrast

On white

13.42
#381877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381877
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381877#FFFFFF#000000##FFFFFF
##3818771.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#223347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381877;
/* rgb */ color: rgb(56, 24, 119);
/* oklch */ color: oklch(32.2% 0.148 290.9);
Tailwind
colors: {
  custom: {
    50: '#76599f',
    500: '#381877',
    950: '#000000',
  },
}
SCSS
$custom: #381877;
$custom-light: #76599f;
$custom-dark: #000000;
JSON
{
  "hex": "#381877",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 260.211,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.322,
    "c": 0.14846,
    "h": 290.9
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#381877
secondary
#87AC3F
accent
#E93EB0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381877

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

Preview Lab → · Contrast checker → · Palette generator →

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