#381481#381481

#381481 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.164 H 288.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#381481
RGBrgb(56, 20, 129)
HSLhsl(260, 73%, 29%)
HSVhsv(260, 84%, 51%)
CMYKcmyk(56.6%, 84.5%, 0%, 49.4%)
CIE-LABlab(19.74, 43.26, -53.97)
CIE-LCHlch(19.74, 69.16, 308.72°)
OKLaboklab(32.8% 0.0525 -0.1553)
OKLCHoklch(32.8% 0.164 288.7)
XYZxyz(5.8423, 2.9257, 21.0215)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381481 #5D8114
analogous
#142681 #381481 #6F1481
triadic
#381481 #813814 #148138
tetradic
#381481 #811426 #5D8114 #14816F
square
#381481 #811426 #5D8114 #14816F
split-complementary
#381481 #816F14 #268114
monochromatic
#0C041A #210C4C #381481 #4F1CB6 #6A30DF

Accessibility & contrast

On white

13.25
#381481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381481
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381481#FFFFFF#000000##FFFFFF
##3814811.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#19354C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381481;
/* rgb */ color: rgb(56, 20, 129);
/* oklch */ color: oklch(32.8% 0.164 288.7);
Tailwind
colors: {
  custom: {
    50: '#7858a7',
    500: '#381481',
    950: '#000000',
  },
}
SCSS
$custom: #381481;
$custom-light: #7858a7;
$custom-dark: #000000;
JSON
{
  "hex": "#381481",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 259.817,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.328,
    "c": 0.16393,
    "h": 288.7
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#381481
secondary
#8DB63B
accent
#F038B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #381481

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

Preview Lab → · Contrast checker → · Palette generator →

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