#381A5C#381A5C

#381A5C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.113 H 300.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#381A5C
RGBrgb(56, 26, 92)
HSLhsl(267, 56%, 23%)
HSVhsv(267, 72%, 36%)
CMYKcmyk(39.1%, 71.7%, 0%, 63.9%)
CIE-LABlab(17.24, 29.66, -34.03)
CIE-LCHlch(17.24, 45.14, 311.07°)
OKLaboklab(29.95% 0.0572 -0.0969)
OKLCHoklch(29.95% 0.113 300.6)
XYZxyz(3.9316, 2.3522, 10.3700)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A5C #3E5C1A
analogous
#1A1D5C #381A5C #591A5C
triadic
#381A5C #5C381A #1A5C38
tetradic
#381A5C #5C1A1D #3E5C1A #1A5C59
square
#381A5C #5C1A1D #3E5C1A #1A5C59
split-complementary
#381A5C #5C591A #1D5C1A
monochromatic
#0F0718 #1B0D2C #381A5C #55278C #7235BB

Accessibility & contrast

On white

14.28
#381A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#381A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A5C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A5C#FFFFFF#000000##FFFFFF
##381A5C1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#302938
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381a5c;
/* rgb */ color: rgb(56, 26, 92);
/* oklch */ color: oklch(30.0% 0.113 300.6);
Tailwind
colors: {
  custom: {
    50: '#72598b',
    500: '#381a5c',
    950: '#000000',
  },
}
SCSS
$custom: #381a5c;
$custom-light: #72598b;
$custom-dark: #000000;
JSON
{
  "hex": "#381a5c",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 267.273,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.11253,
    "h": 300.6
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#381A5C
secondary
#6D9240
accent
#DF499B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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