#381B5D#381B5D

#381B5D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.112 H 299.8°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#381B5D
RGBrgb(56, 27, 93)
HSLhsl(266, 55%, 24%)
HSVhsv(266, 71%, 36%)
CMYKcmyk(39.8%, 71%, 0%, 63.5%)
CIE-LABlab(17.53, 29.37, -34.22)
CIE-LCHlch(17.53, 45.10, 310.63°)
OKLaboklab(30.19% 0.0559 -0.0974)
OKLCHoklch(30.19% 0.112 299.8)
XYZxyz(3.9981, 2.4149, 10.6093)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B5D #405D1B
analogous
#1B1F5D #381B5D #591B5D
triadic
#381B5D #5D381B #1B5D38
tetradic
#381B5D #5D1B1F #405D1B #1B5D59
square
#381B5D #5D1B1F #405D1B #1B5D59
split-complementary
#381B5D #5D591B #1F5D1B
monochromatic
#0E0718 #1B0D2E #381B5D #55298C #7137BC

Accessibility & contrast

On white

14.16
#381B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381B5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B5D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B5D#FFFFFF#000000##FFFFFF
##381B5D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#302A39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381b5d;
/* rgb */ color: rgb(56, 27, 93);
/* oklch */ color: oklch(30.2% 0.112 299.8);
Tailwind
colors: {
  custom: {
    50: '#72598b',
    500: '#381b5d',
    950: '#000000',
  },
}
SCSS
$custom: #381b5d;
$custom-light: #72598b;
$custom-dark: #000000;
JSON
{
  "hex": "#381b5d",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 266.364,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30187,
    "c": 0.11232,
    "h": 299.8
  },
  "luminance": 0.02415
}

Semantic roles & 50–950 ramp

primary
#381B5D
secondary
#6F9341
accent
#DE499D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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