#381F55#381F55

#381F55 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.095 H 302.4°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#381F55
RGBrgb(56, 31, 85)
HSLhsl(268, 47%, 23%)
HSVhsv(268, 64%, 33%)
CMYKcmyk(34.1%, 63.5%, 0%, 66.7%)
CIE-LABlab(17.81, 24.63, -28.41)
CIE-LCHlch(17.81, 37.60, 310.92°)
OKLaboklab(30.2% 0.051 -0.0804)
OKLCHoklch(30.2% 0.095 302.4)
XYZxyz(3.7602, 2.4766, 8.8725)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F55 #3C551F
analogous
#1F2155 #381F55 #531F55
triadic
#381F55 #55381F #1F5538
tetradic
#381F55 #551F21 #3C551F #1F5553
square
#381F55 #551F21 #3C551F #1F5553
split-complementary
#381F55 #55531F #21551F
monochromatic
#0F0816 #1A0F28 #381F55 #562F82 #7340AF

Accessibility & contrast

On white

14.04
#381F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F55
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F55#FFFFFF#000000##FFFFFF
##381F551.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#112B54
Tritanopia (blue-blind)
#322A36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381f55;
/* rgb */ color: rgb(56, 31, 85);
/* oklch */ color: oklch(30.2% 0.095 302.4);
Tailwind
colors: {
  custom: {
    50: '#715c85',
    500: '#381f55',
    950: '#000000',
  },
}
SCSS
$custom: #381f55;
$custom-light: #715c85;
$custom-dark: #000000;
JSON
{
  "hex": "#381f55",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 267.778,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30196,
    "c": 0.0952,
    "h": 302.4
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#381F55
secondary
#6A8A46
accent
#D65299
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381F55

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

Preview Lab → · Contrast checker → · Palette generator →

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