#381566#381566

#381566 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.132 H 297.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#381566
RGBrgb(56, 21, 102)
HSLhsl(266, 66%, 24%)
HSVhsv(266, 79%, 40%)
CMYKcmyk(45.1%, 79.4%, 0%, 60%)
CIE-LABlab(17.16, 35.18, -40.78)
CIE-LCHlch(17.16, 53.86, 310.78°)
OKLaboklab(30.17% 0.0607 -0.1167)
OKLCHoklch(30.17% 0.132 297.5)
XYZxyz(4.2967, 2.3363, 12.7924)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381566 #436615
analogous
#151B66 #381566 #611566
triadic
#381566 #663815 #156638
tetradic
#381566 #66151B #436615 #156661
square
#381566 #66151B #436615 #156661
split-complementary
#381566 #666115 #1B6615
monochromatic
#0E0519 #1C0B33 #381566 #541F99 #702ACC

Accessibility & contrast

On white

14.31
#381566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381566
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381566#FFFFFF#000000##FFFFFF
##3815661.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#2C2A3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381566;
/* rgb */ color: rgb(56, 21, 102);
/* oklch */ color: oklch(30.2% 0.132 297.5);
Tailwind
colors: {
  custom: {
    50: '#745692',
    500: '#381566',
    950: '#000000',
  },
}
SCSS
$custom: #381566;
$custom-light: #745692;
$custom-dark: #000000;
JSON
{
  "hex": "#381566",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 265.926,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30172,
    "c": 0.13152,
    "h": 297.5
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#381566
secondary
#729D3A
accent
#E93F9F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381566

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

Preview Lab → · Contrast checker → · Palette generator →

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