#381779#381779

#381779 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.152 H 290.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#381779
RGBrgb(56, 23, 121)
HSLhsl(260, 68%, 28%)
HSVhsv(260, 81%, 47%)
CMYKcmyk(53.7%, 81%, 0%, 52.5%)
CIE-LABlab(19.37, 39.63, -49.49)
CIE-LCHlch(19.37, 63.41, 308.68°)
OKLaboklab(32.29% 0.0532 -0.1422)
OKLCHoklch(32.29% 0.152 290.5)
XYZxyz(5.3875, 2.8338, 18.3486)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381779 #587917
analogous
#172779 #381779 #691779
triadic
#381779 #793817 #177938
tetradic
#381779 #791727 #587917 #177969
square
#381779 #791727 #587917 #177969
split-complementary
#381779 #796917 #277917
monochromatic
#0C051A #200D46 #381779 #5021AC #6A32D8

Accessibility & contrast

On white

13.40
#381779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381779
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381779#FFFFFF#000000##FFFFFF
##3817791.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#203348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381779;
/* rgb */ color: rgb(56, 23, 121);
/* oklch */ color: oklch(32.3% 0.152 290.5);
Tailwind
colors: {
  custom: {
    50: '#7759a1',
    500: '#381779',
    950: '#000000',
  },
}
SCSS
$custom: #381779;
$custom-light: #7759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#381779",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 260.204,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32285,
    "c": 0.15187,
    "h": 290.5
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#381779
secondary
#88AE3E
accent
#EB3DB0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381779

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

Preview Lab → · Contrast checker → · Palette generator →

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