#381C62#381C62

#381C62 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.117 H 297.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#381C62
RGBrgb(56, 28, 98)
HSLhsl(264, 56%, 25%)
HSVhsv(264, 71%, 38%)
CMYKcmyk(42.9%, 71.4%, 0%, 61.6%)
CIE-LABlab(18.16, 30.24, -36.52)
CIE-LCHlch(18.16, 47.42, 309.63°)
OKLaboklab(30.77% 0.0539 -0.1042)
OKLCHoklch(30.77% 0.117 297.4)
XYZxyz(4.2502, 2.5530, 11.8218)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C62 #46621C
analogous
#1C2362 #381C62 #5B1C62
triadic
#381C62 #62381C #1C6238
tetradic
#381C62 #621C23 #46621C #1C625B
square
#381C62 #621C23 #46621C #1C625B
split-complementary
#381C62 #625B1C #23621C
monochromatic
#0E0718 #1D0E32 #381C62 #532A92 #6E37C1

Accessibility & contrast

On white

13.90
#381C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C62
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C62#FFFFFF#000000##FFFFFF
##381C621.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#2E2D3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381c62;
/* rgb */ color: rgb(56, 28, 98);
/* oklch */ color: oklch(30.8% 0.117 297.4);
Tailwind
colors: {
  custom: {
    50: '#735a8f',
    500: '#381c62',
    950: '#000000',
  },
}
SCSS
$custom: #381c62;
$custom-light: #735a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#381c62",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.11734,
    "h": 297.4
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#381C62
secondary
#759743
accent
#DF49A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381C62

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

Preview Lab → · Contrast checker → · Palette generator →

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