#381A5E#381A5E

#381A5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.115 H 299.7°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#381A5E
RGBrgb(56, 26, 94)
HSLhsl(266, 57%, 24%)
HSVhsv(266, 72%, 37%)
CMYKcmyk(40.4%, 72.3%, 0%, 63.1%)
CIE-LABlab(17.40, 30.23, -35.09)
CIE-LCHlch(17.40, 46.32, 310.74°)
OKLaboklab(30.12% 0.057 -0.1)
OKLCHoklch(30.12% 0.115 299.7)
XYZxyz(4.0202, 2.3877, 10.8366)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A5E #405E1A
analogous
#1A1E5E #381A5E #5A1A5E
triadic
#381A5E #5E381A #1A5E38
tetradic
#381A5E #5E1A1E #405E1A #1A5E5A
square
#381A5E #5E1A1E #405E1A #1A5E5A
split-complementary
#381A5E #5E5A1A #1E5E1A
monochromatic
#0E0718 #1B0D2E #381A5E #55278E #7135BE

Accessibility & contrast

On white

14.21
#381A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A5E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A5E#FFFFFF#000000##FFFFFF
##381A5E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#2F2A39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381a5e;
/* rgb */ color: rgb(56, 26, 94);
/* oklch */ color: oklch(30.1% 0.115 299.7);
Tailwind
colors: {
  custom: {
    50: '#72598c',
    500: '#381a5e',
    950: '#000000',
  },
}
SCSS
$custom: #381a5e;
$custom-light: #72598c;
$custom-dark: #000000;
JSON
{
  "hex": "#381a5e",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 266.471,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30122,
    "c": 0.11509,
    "h": 299.7
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#381A5E
secondary
#6F9440
accent
#E0489D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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