#381D5A#381D5A

#381D5A is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.105 H 300.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#381D5A
RGBrgb(56, 29, 90)
HSLhsl(267, 51%, 23%)
HSVhsv(267, 68%, 35%)
CMYKcmyk(37.8%, 67.8%, 0%, 64.7%)
CIE-LABlab(17.73, 27.31, -31.90)
CIE-LCHlch(17.73, 42.00, 310.57°)
OKLaboklab(30.25% 0.0536 -0.0906)
OKLCHoklch(30.25% 0.105 300.6)
XYZxyz(3.9153, 2.4576, 9.9390)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D5A #3F5A1D
analogous
#1D205A #381D5A #561D5A
triadic
#381D5A #5A381D #1D5A38
tetradic
#381D5A #5A1D20 #3F5A1D #1D5A56
square
#381D5A #5A1D20 #3F5A1D #1D5A56
split-complementary
#381D5A #5A561D #205A1D
monochromatic
#0E0717 #1B0E2C #381D5A #552C88 #723BB7

Accessibility & contrast

On white

14.08
#381D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D5A
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D5A#FFFFFF#000000##FFFFFF
##381D5A1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#062B59
Tritanopia (blue-blind)
#312A38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381d5a;
/* rgb */ color: rgb(56, 29, 90);
/* oklch */ color: oklch(30.3% 0.105 300.6);
Tailwind
colors: {
  custom: {
    50: '#725b89',
    500: '#381d5a',
    950: '#000000',
  },
}
SCSS
$custom: #381d5a;
$custom-light: #725b89;
$custom-dark: #000000;
JSON
{
  "hex": "#381d5a",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 266.557,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30253,
    "c": 0.1053,
    "h": 300.6
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#381D5A
secondary
#6E8F44
accent
#DB4D9C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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