#381C63#381C63

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

Color values

HEX#381C63
RGBrgb(56, 28, 99)
HSLhsl(264, 56%, 25%)
HSVhsv(264, 72%, 39%)
CMYKcmyk(43.4%, 71.7%, 0%, 61.2%)
CIE-LABlab(18.24, 30.54, -37.04)
CIE-LCHlch(18.24, 48.01, 309.50°)
OKLaboklab(30.86% 0.0538 -0.1057)
OKLCHoklch(30.86% 0.119 297)
XYZxyz(4.2977, 2.5720, 12.0720)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C63 #47631C
analogous
#1C2363 #381C63 #5C1C63
triadic
#381C63 #63381C #1C6338
tetradic
#381C63 #631C23 #47631C #1C635C
square
#381C63 #631C23 #47631C #1C635C
split-complementary
#381C63 #635C1C #23631C
monochromatic
#0D0718 #1D0F33 #381C63 #532993 #6E37C2

Accessibility & contrast

On white

13.87
#381C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C63
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C63#FFFFFF#000000##FFFFFF
##381C631.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381c63;
/* rgb */ color: rgb(56, 28, 99);
/* oklch */ color: oklch(30.9% 0.119 297.0);
Tailwind
colors: {
  custom: {
    50: '#735a90',
    500: '#381c63',
    950: '#000000',
  },
}
SCSS
$custom: #381c63;
$custom-light: #735a90;
$custom-dark: #000000;
JSON
{
  "hex": "#381c63",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 263.662,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30856,
    "c": 0.11864,
    "h": 297
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#381C63
secondary
#769843
accent
#DF49A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381C63

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

Preview Lab → · Contrast checker → · Palette generator →

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