#381552#381552

#381552 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.107 H 307.1°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#381552
RGBrgb(56, 21, 82)
HSLhsl(274, 59%, 20%)
HSVhsv(274, 74%, 32%)
CMYKcmyk(31.7%, 74.4%, 0%, 67.8%)
CIE-LABlab(15.42, 29.69, -30.24)
CIE-LCHlch(15.42, 42.38, 314.47°)
OKLaboklab(28.39% 0.0649 -0.0857)
OKLCHoklch(28.39% 0.107 307.1)
XYZxyz(3.4217, 1.9863, 8.1841)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381552 #2F5215
analogous
#191552 #381552 #52154D
triadic
#381552 #523815 #155238
tetradic
#381552 #521915 #2F5215 #154D52
square
#381552 #521915 #2F5215 #154D52
split-complementary
#381552 #4D5215 #155219
monochromatic
#110618 #170921 #381552 #592183 #7B2EB3

Accessibility & contrast

On white

15.03
#381552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#381552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381552
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381552#FFFFFF#000000##FFFFFF
##3815521.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381552;
/* rgb */ color: rgb(56, 21, 82);
/* oklch */ color: oklch(28.4% 0.107 307.1);
Tailwind
colors: {
  custom: {
    50: '#715583',
    500: '#381552',
    950: '#000000',
  },
}
SCSS
$custom: #381552;
$custom-light: #715583;
$custom-dark: #000000;
JSON
{
  "hex": "#381552",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 274.426,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28388,
    "c": 0.10748,
    "h": 307.1
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#381552
secondary
#5B8A39
accent
#E24588
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381552

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

Preview Lab → · Contrast checker → · Palette generator →

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