#381E52#381E52

#381E52 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.093 H 304.4°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#381E52
RGBrgb(56, 30, 82)
HSLhsl(270, 46%, 22%)
HSVhsv(270, 63%, 32%)
CMYKcmyk(31.7%, 63.4%, 0%, 67.8%)
CIE-LABlab(17.36, 24.40, -27.11)
CIE-LCHlch(17.36, 36.47, 311.99°)
OKLaboklab(29.8% 0.0525 -0.0766)
OKLCHoklch(29.8% 0.093 304.4)
XYZxyz(3.6178, 2.3785, 8.2495)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E52 #38521E
analogous
#1E1E52 #381E52 #521E52
triadic
#381E52 #52381E #1E5238
tetradic
#381E52 #521E1E #38521E #1E5252
square
#381E52 #521E1E #38521E #1E5252
split-complementary
#381E52 #52521E #1E521E
monochromatic
#0F0816 #190E25 #381E52 #572E7F #753FAC

Accessibility & contrast

On white

14.23
#381E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E52
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E52#FFFFFF#000000##FFFFFF
##381E521.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#332834
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381e52;
/* rgb */ color: rgb(56, 30, 82);
/* oklch */ color: oklch(29.8% 0.093 304.4);
Tailwind
colors: {
  custom: {
    50: '#715b83',
    500: '#381e52',
    950: '#000000',
  },
}
SCSS
$custom: #381e52;
$custom-light: #715b83;
$custom-dark: #000000;
JSON
{
  "hex": "#381e52",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 270,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29796,
    "c": 0.09282,
    "h": 304.4
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#381E52
secondary
#668745
accent
#D65294
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381E52

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

Preview Lab → · Contrast checker → · Palette generator →

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