#381F8F#381F8F

#381F8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.170 H 283.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#381F8F
RGBrgb(56, 31, 143)
HSLhsl(253, 64%, 34%)
HSVhsv(253, 78%, 56%)
CMYKcmyk(60.8%, 78.3%, 0%, 43.9%)
CIE-LABlab(23.01, 42.20, -57.36)
CIE-LCHlch(23.01, 71.22, 306.34°)
OKLaboklab(35.51% 0.0406 -0.1653)
OKLCHoklch(35.51% 0.17 283.8)
XYZxyz(7.0773, 3.8034, 26.3425)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F8F #768F1F
analogous
#1F3E8F #381F8F #701F8F
triadic
#381F8F #8F381F #1F8F38
tetradic
#381F8F #8F1F3E #768F1F #1F8F70
square
#381F8F #8F1F3E #768F1F #1F8F70
split-complementary
#381F8F #8F701F #3E8F1F
monochromatic
#11092A #24145D #381F8F #4C2AC1 #6E4FD9

Accessibility & contrast

On white

11.93
#381F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#381F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F8F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F8F#FFFFFF#000000##FFFFFF
##381F8F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381f8f;
/* rgb */ color: rgb(56, 31, 143);
/* oklch */ color: oklch(35.5% 0.170 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a5eb1',
    500: '#381f8f',
    950: '#000000',
  },
}
SCSS
$custom: #381f8f;
$custom-light: #7a5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#381f8f",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 253.393,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35514,
    "c": 0.17024,
    "h": 283.8
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#381F8F
secondary
#A3BC4E
accent
#E740C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #381F8F

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

Preview Lab → · Contrast checker → · Palette generator →

#381F8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva