#381579#381579

#381579 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.154 H 290.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#381579
RGBrgb(56, 21, 121)
HSLhsl(261, 70%, 28%)
HSVhsv(261, 83%, 47%)
CMYKcmyk(53.7%, 82.6%, 0%, 52.5%)
CIE-LABlab(19.04, 40.56, -50.02)
CIE-LCHlch(19.04, 64.40, 309.04°)
OKLaboklab(32.06% 0.0547 -0.1438)
OKLCHoklch(32.06% 0.154 290.8)
XYZxyz(5.3493, 2.7573, 18.3358)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381579 #567915
analogous
#152479 #381579 #6A1579
triadic
#381579 #793815 #157938
tetradic
#381579 #791524 #567915 #15796A
square
#381579 #791524 #567915 #15796A
split-complementary
#381579 #796A15 #247915
monochromatic
#0C051A #200C45 #381579 #501EAD #6A2EDB

Accessibility & contrast

On white

13.53
#381579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381579
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381579#FFFFFF#000000##FFFFFF
##3815791.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#213247
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381579;
/* rgb */ color: rgb(56, 21, 121);
/* oklch */ color: oklch(32.1% 0.154 290.8);
Tailwind
colors: {
  custom: {
    50: '#7758a1',
    500: '#381579',
    950: '#000000',
  },
}
SCSS
$custom: #381579;
$custom-light: #7758a1;
$custom-dark: #000000;
JSON
{
  "hex": "#381579",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 261,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32062,
    "c": 0.15384,
    "h": 290.8
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#381579
secondary
#86AF3B
accent
#ED3BAF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #381579

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

Preview Lab → · Contrast checker → · Palette generator →

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