#381381#381381

#381381 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.165 H 288.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#381381
RGBrgb(56, 19, 129)
HSLhsl(260, 74%, 29%)
HSVhsv(260, 85%, 51%)
CMYKcmyk(56.6%, 85.3%, 0%, 49.4%)
CIE-LABlab(19.60, 43.67, -54.20)
CIE-LCHlch(19.60, 69.60, 308.86°)
OKLaboklab(32.7% 0.0531 -0.156)
OKLCHoklch(32.7% 0.165 288.8)
XYZxyz(5.8250, 2.8912, 21.0157)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381381 #5C8113
analogous
#132581 #381381 #6F1381
triadic
#381381 #813813 #138138
tetradic
#381381 #811325 #5C8113 #13816F
square
#381381 #811325 #5C8113 #13816F
split-complementary
#381381 #816F13 #258113
monochromatic
#0C041B #210B4C #381381 #4F1BB6 #6A2EE0

Accessibility & contrast

On white

13.31
#381381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381381
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381381#FFFFFF#000000##FFFFFF
##3813811.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381381;
/* rgb */ color: rgb(56, 19, 129);
/* oklch */ color: oklch(32.7% 0.165 288.8);
Tailwind
colors: {
  custom: {
    50: '#7857a7',
    500: '#381381',
    950: '#000000',
  },
}
SCSS
$custom: #381381;
$custom-light: #7857a7;
$custom-dark: #000000;
JSON
{
  "hex": "#381381",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 260.182,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.16476,
    "h": 288.8
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#381381
secondary
#8CB63A
accent
#F137B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #381381

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

Preview Lab → · Contrast checker → · Palette generator →

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