#381D54#381D54

#381D54 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.097 H 303.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#381D54
RGBrgb(56, 29, 84)
HSLhsl(269, 49%, 22%)
HSVhsv(269, 65%, 33%)
CMYKcmyk(33.3%, 65.5%, 0%, 67.1%)
CIE-LABlab(17.27, 25.59, -28.61)
CIE-LCHlch(17.27, 38.38, 311.81°)
OKLaboklab(29.78% 0.0539 -0.0809)
OKLCHoklch(29.78% 0.097 303.7)
XYZxyz(3.6701, 2.3596, 8.6479)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D54 #39541D
analogous
#1D1D54 #381D54 #541D54
triadic
#381D54 #54381D #1D5438
tetradic
#381D54 #541D1D #39541D #1D5454
square
#381D54 #541D1D #39541D #1D5454
split-complementary
#381D54 #54541D #1D541D
monochromatic
#0F0817 #1A0D27 #381D54 #562D81 #753CAF

Accessibility & contrast

On white

14.27
#381D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D54
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D54#FFFFFF#000000##FFFFFF
##381D541.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032A56
Deuteranopia (green-blind)
#0F2A53
Tritanopia (blue-blind)
#332835
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381d54;
/* rgb */ color: rgb(56, 29, 84);
/* oklch */ color: oklch(29.8% 0.097 303.7);
Tailwind
colors: {
  custom: {
    50: '#715a84',
    500: '#381d54',
    950: '#000000',
  },
}
SCSS
$custom: #381d54;
$custom-light: #715a84;
$custom-dark: #000000;
JSON
{
  "hex": "#381d54",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 84
  },
  "hsl": {
    "h": 269.455,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29777,
    "c": 0.09725,
    "h": 303.7
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#381D54
secondary
#678944
accent
#D85095
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #381D54

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

Preview Lab → · Contrast checker → · Palette generator →

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