#381C64#381C64

#381C64 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.120 H 296.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#381C64
RGBrgb(56, 28, 100)
HSLhsl(263, 56%, 25%)
HSVhsv(263, 72%, 39%)
CMYKcmyk(44%, 72%, 0%, 60.8%)
CIE-LABlab(18.33, 30.83, -37.56)
CIE-LCHlch(18.33, 48.60, 309.38°)
OKLaboklab(30.94% 0.0536 -0.1073)
OKLCHoklch(30.94% 0.12 296.6)
XYZxyz(4.3458, 2.5913, 12.3253)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C64 #48641C
analogous
#1C2464 #381C64 #5C1C64
triadic
#381C64 #64381C #1C6438
tetradic
#381C64 #641C24 #48641C #1C645C
square
#381C64 #641C24 #48641C #1C645C
split-complementary
#381C64 #645C1C #24641C
monochromatic
#0D0718 #1D0F34 #381C64 #532994 #6E37C4

Accessibility & contrast

On white

13.83
#381C64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381C64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C64
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C64#FFFFFF#000000##FFFFFF
##381C641.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#2D2D3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381c64;
/* rgb */ color: rgb(56, 28, 100);
/* oklch */ color: oklch(30.9% 0.120 296.6);
Tailwind
colors: {
  custom: {
    50: '#735a91',
    500: '#381c64',
    950: '#000000',
  },
}
SCSS
$custom: #381c64;
$custom-light: #735a91;
$custom-dark: #000000;
JSON
{
  "hex": "#381c64",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 100
  },
  "hsl": {
    "h": 263.333,
    "s": 56.25,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.11993,
    "h": 296.6
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#381C64
secondary
#789943
accent
#E048A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #381C64

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

Preview Lab → · Contrast checker → · Palette generator →

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