#381A58#381A58

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

Color values

HEX#381A58
RGBrgb(56, 26, 88)
HSLhsl(269, 54%, 22%)
HSVhsv(269, 70%, 35%)
CMYKcmyk(36.4%, 70.5%, 0%, 65.5%)
CIE-LABlab(16.91, 28.52, -31.88)
CIE-LCHlch(16.91, 42.77, 311.82°)
OKLaboklab(29.62% 0.0577 -0.0905)
OKLCHoklch(29.62% 0.107 302.5)
XYZxyz(3.7613, 2.2841, 9.4733)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A58 #3A581A
analogous
#1A1B58 #381A58 #571A58
triadic
#381A58 #58381A #1A5838
tetradic
#381A58 #581A1B #3A581A #1A5857
square
#381A58 #581A1B #3A581A #1A5857
split-complementary
#381A58 #58571A #1B581A
monochromatic
#0F0718 #1A0C29 #381A58 #562887 #7436B6

Accessibility & contrast

On white

14.42
#381A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#381A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A58
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A58#FFFFFF#000000##FFFFFF
##381A581.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#042957
Tritanopia (blue-blind)
#322836
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381a58;
/* rgb */ color: rgb(56, 26, 88);
/* oklch */ color: oklch(29.6% 0.107 302.5);
Tailwind
colors: {
  custom: {
    50: '#725988',
    500: '#381a58',
    950: '#000000',
  },
}
SCSS
$custom: #381a58;
$custom-light: #725988;
$custom-dark: #000000;
JSON
{
  "hex": "#381a58",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 269.032,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29615,
    "c": 0.10739,
    "h": 302.5
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#381A58
secondary
#688E40
accent
#DE4A96
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381A58

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

Preview Lab → · Contrast checker → · Palette generator →

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