#381F66#381F66

#381F66 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.6% C 0.118 H 294.9°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#381F66
RGBrgb(56, 31, 102)
HSLhsl(261, 53%, 26%)
HSVhsv(261, 70%, 40%)
CMYKcmyk(45.1%, 69.6%, 0%, 60%)
CIE-LABlab(19.14, 29.66, -37.56)
CIE-LCHlch(19.14, 47.86, 308.30°)
OKLaboklab(31.58% 0.0498 -0.1073)
OKLCHoklch(31.58% 0.118 294.9)
XYZxyz(4.5185, 2.7799, 12.8663)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F66 #4D661F
analogous
#1F2966 #381F66 #5B1F66
triadic
#381F66 #66381F #1F6638
tetradic
#381F66 #661F29 #4D661F #1F665B
square
#381F66 #661F29 #4D661F #1F665B
split-complementary
#381F66 #665B1F #29661F
monochromatic
#0D0717 #1E1137 #381F66 #522D95 #6C3CC4

Accessibility & contrast

On white

13.50
#381F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F66
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F66#FFFFFF#000000##FFFFFF
##381F661.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#2C303F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381f66;
/* rgb */ color: rgb(56, 31, 102);
/* oklch */ color: oklch(31.6% 0.118 294.9);
Tailwind
colors: {
  custom: {
    50: '#735c92',
    500: '#381f66',
    950: '#000000',
  },
}
SCSS
$custom: #381f66;
$custom-light: #735c92;
$custom-dark: #000000;
JSON
{
  "hex": "#381f66",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 261.127,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31581,
    "c": 0.11826,
    "h": 294.9
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#381F66
secondary
#7D9A46
accent
#DD4BA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381F66

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

Preview Lab → · Contrast checker → · Palette generator →

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