#381568#381568

#381568 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.134 H 296.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#381568
RGBrgb(56, 21, 104)
HSLhsl(265, 66%, 25%)
HSVhsv(265, 80%, 41%)
CMYKcmyk(46.2%, 79.8%, 0%, 59.2%)
CIE-LABlab(17.35, 35.74, -41.79)
CIE-LCHlch(17.35, 54.98, 310.54°)
OKLaboklab(30.36% 0.0601 -0.1196)
OKLCHoklch(30.36% 0.134 296.7)
XYZxyz(4.3971, 2.3765, 13.3211)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381568 #456815
analogous
#151C68 #381568 #621568
triadic
#381568 #683815 #156838
tetradic
#381568 #68151C #456815 #156862
square
#381568 #68151C #456815 #156862
split-complementary
#381568 #686215 #1C6815
monochromatic
#0E0519 #1D0B35 #381568 #531F9B #6F2ACE

Accessibility & contrast

On white

14.23
#381568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##381568#FFFFFF#000000##FFFFFF
##3815681.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)
#002B6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#2B2B3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381568;
/* rgb */ color: rgb(56, 21, 104);
/* oklch */ color: oklch(30.4% 0.134 296.7);
Tailwind
colors: {
  custom: {
    50: '#745794',
    500: '#381568',
    950: '#000000',
  },
}
SCSS
$custom: #381568;
$custom-light: #745794;
$custom-dark: #000000;
JSON
{
  "hex": "#381568",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 265.301,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30363,
    "c": 0.1339,
    "h": 296.7
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#381568
secondary
#749F3A
accent
#E93EA1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381568

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

Preview Lab → · Contrast checker → · Palette generator →

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