#381F68#381F68

#381F68 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.121 H 294.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#381F68
RGBrgb(56, 31, 104)
HSLhsl(261, 54%, 26%)
HSVhsv(261, 70%, 41%)
CMYKcmyk(46.2%, 70.2%, 0%, 59.2%)
CIE-LABlab(19.31, 30.27, -38.59)
CIE-LCHlch(19.31, 49.05, 308.11°)
OKLaboklab(31.76% 0.0495 -0.1103)
OKLCHoklch(31.76% 0.121 294.2)
XYZxyz(4.6189, 2.8201, 13.3950)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F68 #4F681F
analogous
#1F2B68 #381F68 #5D1F68
triadic
#381F68 #68381F #1F6838
tetradic
#381F68 #681F2B #4F681F #1F685D
square
#381F68 #681F2B #4F681F #1F685D
split-complementary
#381F68 #685D1F #2B681F
monochromatic
#0D0718 #1F1139 #381F68 #512D97 #6B3CC5

Accessibility & contrast

On white

13.43
#381F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F68
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F68#FFFFFF#000000##FFFFFF
##381F681.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#2B3040
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381f68;
/* rgb */ color: rgb(56, 31, 104);
/* oklch */ color: oklch(31.8% 0.121 294.2);
Tailwind
colors: {
  custom: {
    50: '#735c94',
    500: '#381f68',
    950: '#000000',
  },
}
SCSS
$custom: #381f68;
$custom-light: #735c94;
$custom-dark: #000000;
JSON
{
  "hex": "#381f68",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 260.548,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31755,
    "c": 0.12091,
    "h": 294.2
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#381F68
secondary
#7F9C46
accent
#DD4AAB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381F68

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

Preview Lab → · Contrast checker → · Palette generator →

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