#381452#381452

#381452 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.109 H 307.4°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#381452
RGBrgb(56, 20, 82)
HSLhsl(275, 61%, 20%)
HSVhsv(275, 76%, 32%)
CMYKcmyk(31.7%, 75.6%, 0%, 67.8%)
CIE-LABlab(15.22, 30.22, -30.55)
CIE-LCHlch(15.22, 42.97, 314.69°)
OKLaboklab(28.25% 0.0661 -0.0866)
OKLCHoklch(28.25% 0.109 307.4)
XYZxyz(3.4037, 1.9503, 8.1781)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381452 #2E5214
analogous
#191452 #381452 #52144D
triadic
#381452 #523814 #145238
tetradic
#381452 #521914 #2E5214 #144D52
square
#381452 #521914 #2E5214 #144D52
split-complementary
#381452 #4D5214 #145219
monochromatic
#110619 #160821 #381452 #5A2083 #7B2CB4

Accessibility & contrast

On white

15.11
#381452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381452
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381452#FFFFFF#000000##FFFFFF
##3814521.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#042651
Tritanopia (blue-blind)
#342231
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381452;
/* rgb */ color: rgb(56, 20, 82);
/* oklch */ color: oklch(28.3% 0.109 307.4);
Tailwind
colors: {
  custom: {
    50: '#725583',
    500: '#381452',
    950: '#000000',
  },
}
SCSS
$custom: #381452;
$custom-light: #725583;
$custom-dark: #000000;
JSON
{
  "hex": "#381452",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 274.839,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.28251,
    "c": 0.10896,
    "h": 307.4
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#381452
secondary
#5A8A38
accent
#E44487
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381452

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

Preview Lab → · Contrast checker → · Palette generator →

#381452 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva