#381E50#381E50

#381E50 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.090 H 305.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#381E50
RGBrgb(56, 30, 80)
HSLhsl(271, 45%, 22%)
HSVhsv(271, 63%, 31%)
CMYKcmyk(30%, 62.5%, 0%, 68.6%)
CIE-LABlab(17.22, 23.84, -25.98)
CIE-LCHlch(17.22, 35.26, 312.53°)
OKLaboklab(29.65% 0.0524 -0.0733)
OKLCHoklch(29.65% 0.09 305.6)
XYZxyz(3.5428, 2.3485, 7.8545)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E50 #36501E
analogous
#1F1E50 #381E50 #501E4F
triadic
#381E50 #50381E #1E5038
tetradic
#381E50 #501F1E #36501E #1E4F50
square
#381E50 #501F1E #36501E #1E4F50
split-complementary
#381E50 #4F501E #1E501F
monochromatic
#100816 #190D23 #381E50 #572F7D #763FA9

Accessibility & contrast

On white

14.29
#381E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E50
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E50#FFFFFF#000000##FFFFFF
##381E501.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2A52
Deuteranopia (green-blind)
#152A4F
Tritanopia (blue-blind)
#342833
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381e50;
/* rgb */ color: rgb(56, 30, 80);
/* oklch */ color: oklch(29.6% 0.090 305.6);
Tailwind
colors: {
  custom: {
    50: '#715b81',
    500: '#381e50',
    950: '#000000',
  },
}
SCSS
$custom: #381e50;
$custom-light: #715b81;
$custom-dark: #000000;
JSON
{
  "hex": "#381e50",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 271.2,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29647,
    "c": 0.09009,
    "h": 305.6
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#381E50
secondary
#648545
accent
#D55391
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #381E50

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

Preview Lab → · Contrast checker → · Palette generator →

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