#381A64#381A64

#381A64 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.123 H 297.1°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#381A64
RGBrgb(56, 26, 100)
HSLhsl(264, 59%, 25%)
HSVhsv(264, 74%, 39%)
CMYKcmyk(44%, 74%, 0%, 60.8%)
CIE-LABlab(17.92, 31.97, -38.23)
CIE-LCHlch(17.92, 49.83, 309.90°)
OKLaboklab(30.65% 0.0559 -0.1092)
OKLCHoklch(30.65% 0.123 297.1)
XYZxyz(4.2999, 2.4996, 12.3100)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A64 #46641A
analogous
#1A2164 #381A64 #5D1A64
triadic
#381A64 #64381A #1A6438
tetradic
#381A64 #641A21 #46641A #1A645D
square
#381A64 #641A21 #46641A #1A645D
split-complementary
#381A64 #645D1A #21641A
monochromatic
#0E0618 #1D0D33 #381A64 #532795 #6E33C5

Accessibility & contrast

On white

14.00
#381A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A64
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A64#FFFFFF#000000##FFFFFF
##381A641.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#2D2C3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381a64;
/* rgb */ color: rgb(56, 26, 100);
/* oklch */ color: oklch(30.6% 0.123 297.1);
Tailwind
colors: {
  custom: {
    50: '#735991',
    500: '#381a64',
    950: '#000000',
  },
}
SCSS
$custom: #381a64;
$custom-light: #735991;
$custom-dark: #000000;
JSON
{
  "hex": "#381a64",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 264.324,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3065,
    "c": 0.12271,
    "h": 297.1
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#381A64
secondary
#759A40
accent
#E246A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #381A64

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

Preview Lab → · Contrast checker → · Palette generator →

#381A64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva