#381564#381564

#381564 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.129 H 298.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#381564
RGBrgb(56, 21, 100)
HSLhsl(267, 65%, 24%)
HSVhsv(267, 79%, 39%)
CMYKcmyk(44%, 79%, 0%, 60.8%)
CIE-LABlab(16.98, 34.62, -39.77)
CIE-LCHlch(16.98, 52.72, 311.04°)
OKLaboklab(29.98% 0.0612 -0.1137)
OKLCHoklch(29.98% 0.129 298.3)
XYZxyz(4.1987, 2.2971, 12.2763)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381564 #416415
analogous
#151964 #381564 #5F1564
triadic
#381564 #643815 #156438
tetradic
#381564 #641519 #416415 #15645F
square
#381564 #641519 #416415 #15645F
split-complementary
#381564 #645F15 #196415
monochromatic
#0E0519 #1C0A31 #381564 #542097 #712AC9

Accessibility & contrast

On white

14.39
#381564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#381564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381564
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381564#FFFFFF#000000##FFFFFF
##3815641.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#2D2A3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381564;
/* rgb */ color: rgb(56, 21, 100);
/* oklch */ color: oklch(30.0% 0.129 298.3);
Tailwind
colors: {
  custom: {
    50: '#745691',
    500: '#381564',
    950: '#000000',
  },
}
SCSS
$custom: #381564;
$custom-light: #745691;
$custom-dark: #000000;
JSON
{
  "hex": "#381564",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 266.582,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29983,
    "c": 0.12914,
    "h": 298.3
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#381564
secondary
#709B3A
accent
#E8409E
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381564

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

Preview Lab → · Contrast checker → · Palette generator →

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