#381D52#381D52

#381D52 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.095 H 304.8°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#381D52
RGBrgb(56, 29, 82)
HSLhsl(271, 48%, 22%)
HSVhsv(271, 65%, 32%)
CMYKcmyk(31.7%, 64.6%, 0%, 67.8%)
CIE-LABlab(17.13, 25.02, -27.49)
CIE-LCHlch(17.13, 37.17, 312.31°)
OKLaboklab(29.62% 0.0539 -0.0777)
OKLCHoklch(29.62% 0.095 304.8)
XYZxyz(3.5929, 2.3287, 8.2412)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D52 #37521D
analogous
#1E1D52 #381D52 #521D52
triadic
#381D52 #52381D #1D5238
tetradic
#381D52 #521E1D #37521D #1D5252
square
#381D52 #521E1D #37521D #1D5252
split-complementary
#381D52 #52521D #1D521E
monochromatic
#0F0817 #190D25 #381D52 #572D7F #763DAC

Accessibility & contrast

On white

14.33
#381D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D52
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D52#FFFFFF#000000##FFFFFF
##381D521.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#122A51
Tritanopia (blue-blind)
#332834
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381d52;
/* rgb */ color: rgb(56, 29, 82);
/* oklch */ color: oklch(29.6% 0.095 304.8);
Tailwind
colors: {
  custom: {
    50: '#715a83',
    500: '#381d52',
    950: '#000000',
  },
}
SCSS
$custom: #381d52;
$custom-light: #715a83;
$custom-dark: #000000;
JSON
{
  "hex": "#381d52",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 270.566,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29624,
    "c": 0.09456,
    "h": 304.8
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#381D52
secondary
#658744
accent
#D75093
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381D52

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

Preview Lab → · Contrast checker → · Palette generator →

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