#381980#381980

#381980 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 288.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#381980
RGBrgb(56, 25, 128)
HSLhsl(258, 67%, 30%)
HSVhsv(258, 80%, 50%)
CMYKcmyk(56.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(20.42, 40.71, -52.22)
CIE-LCHlch(20.42, 66.21, 307.94°)
OKLaboklab(33.24% 0.0494 -0.1502)
OKLCHoklch(33.24% 0.158 288.2)
XYZxyz(5.8737, 3.0942, 20.7056)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381980 #618019
analogous
#192E80 #381980 #6B1980
triadic
#381980 #803819 #198038
tetradic
#381980 #80192E #618019 #19806B
square
#381980 #80192E #618019 #19806B
split-complementary
#381980 #806B19 #2E8019
monochromatic
#0B051A #220F4D #381980 #4E23B3 #6A3BD9

Accessibility & contrast

On white

12.97
#381980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381980
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381980#FFFFFF#000000##FFFFFF
##3819801.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1A374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381980;
/* rgb */ color: rgb(56, 25, 128);
/* oklch */ color: oklch(33.2% 0.158 288.2);
Tailwind
colors: {
  custom: {
    50: '#785aa6',
    500: '#381980',
    950: '#000000',
  },
}
SCSS
$custom: #381980;
$custom-light: #785aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#381980",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 258.058,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.15818,
    "h": 288.2
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#381980
secondary
#91B441
accent
#EA3EB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381980

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

Preview Lab → · Contrast checker → · Palette generator →

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