#381B52#381B52

#381B52 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.098 H 305.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#381B52
RGBrgb(56, 27, 82)
HSLhsl(272, 50%, 21%)
HSVhsv(272, 67%, 32%)
CMYKcmyk(31.7%, 67.1%, 0%, 67.8%)
CIE-LABlab(16.67, 26.25, -28.22)
CIE-LCHlch(16.67, 38.54, 312.93°)
OKLaboklab(29.29% 0.0568 -0.0798)
OKLCHoklch(29.29% 0.098 305.4)
XYZxyz(3.5455, 2.2338, 8.2254)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B52 #35521B
analogous
#1D1B52 #381B52 #521B51
triadic
#381B52 #52381B #1B5238
tetradic
#381B52 #521D1B #35521B #1B5152
square
#381B52 #521D1B #35521B #1B5152
split-complementary
#381B52 #51521B #1B521D
monochromatic
#100817 #190C24 #381B52 #572A80 #7739AE

Accessibility & contrast

On white

14.51
#381B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B52
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B52#FFFFFF#000000##FFFFFF
##381B521.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012854
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#342633
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381b52;
/* rgb */ color: rgb(56, 27, 82);
/* oklch */ color: oklch(29.3% 0.098 305.4);
Tailwind
colors: {
  custom: {
    50: '#715983',
    500: '#381b52',
    950: '#000000',
  },
}
SCSS
$custom: #381b52;
$custom-light: #715983;
$custom-dark: #000000;
JSON
{
  "hex": "#381b52",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 271.636,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29292,
    "c": 0.09796,
    "h": 305.4
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#381B52
secondary
#628841
accent
#DA4E90
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381B52

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

Preview Lab → · Contrast checker → · Palette generator →

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