#381B5C#381B5C

#381B5C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.111 H 300.3°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#381B5C
RGBrgb(56, 27, 92)
HSLhsl(267, 55%, 23%)
HSVhsv(267, 71%, 36%)
CMYKcmyk(39.1%, 70.7%, 0%, 63.9%)
CIE-LABlab(17.45, 29.08, -33.69)
CIE-LCHlch(17.45, 44.50, 310.80°)
OKLaboklab(30.1% 0.056 -0.0959)
OKLCHoklch(30.1% 0.111 300.3)
XYZxyz(3.9541, 2.3973, 10.3775)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B5C #3F5C1B
analogous
#1B1E5C #381B5C #581B5C
triadic
#381B5C #5C381B #1B5C38
tetradic
#381B5C #5C1B1E #3F5C1B #1B5C58
square
#381B5C #5C1B1E #3F5C1B #1B5C58
split-complementary
#381B5C #5C581B #1E5C1B
monochromatic
#0E0718 #1B0D2D #381B5C #55298B #7237BB

Accessibility & contrast

On white

14.19
#381B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B5C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B5C#FFFFFF#000000##FFFFFF
##381B5C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b5c;
/* rgb */ color: rgb(56, 27, 92);
/* oklch */ color: oklch(30.1% 0.111 300.3);
Tailwind
colors: {
  custom: {
    50: '#72598b',
    500: '#381b5c',
    950: '#000000',
  },
}
SCSS
$custom: #381b5c;
$custom-light: #72598b;
$custom-dark: #000000;
JSON
{
  "hex": "#381b5c",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 266.769,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.11103,
    "h": 300.3
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#381B5C
secondary
#6E9241
accent
#DE4A9C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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