#381B61#381B61

#381B61 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.117 H 298.1°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#381B61
RGBrgb(56, 27, 97)
HSLhsl(265, 56%, 24%)
HSVhsv(265, 72%, 38%)
CMYKcmyk(42.3%, 72.2%, 0%, 62%)
CIE-LABlab(17.86, 30.53, -36.34)
CIE-LCHlch(17.86, 47.46, 310.03°)
OKLaboklab(30.53% 0.0553 -0.1037)
OKLCHoklch(30.53% 0.117 298.1)
XYZxyz(4.1799, 2.4876, 11.5669)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B61 #44611B
analogous
#1B2161 #381B61 #5B1B61
triadic
#381B61 #61381B #1B6138
tetradic
#381B61 #611B21 #44611B #1B615B
square
#381B61 #611B21 #44611B #1B615B
split-complementary
#381B61 #615B1B #21611B
monochromatic
#0E0718 #1C0E31 #381B61 #542891 #6F36C1

Accessibility & contrast

On white

14.02
#381B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B61
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B61#FFFFFF#000000##FFFFFF
##381B611.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#2E2C3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381b61;
/* rgb */ color: rgb(56, 27, 97);
/* oklch */ color: oklch(30.5% 0.117 298.1);
Tailwind
colors: {
  custom: {
    50: '#735a8e',
    500: '#381b61',
    950: '#000000',
  },
}
SCSS
$custom: #381b61;
$custom-light: #735a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#381b61",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 264.857,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30531,
    "c": 0.11749,
    "h": 298.1
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#381B61
secondary
#739741
accent
#E048A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B61

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

Preview Lab → · Contrast checker → · Palette generator →

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