#381A6A#381A6A

#381A6A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.130 H 294.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#381A6A
RGBrgb(56, 26, 106)
HSLhsl(263, 61%, 26%)
HSVhsv(263, 75%, 42%)
CMYKcmyk(47.2%, 75.5%, 0%, 58.4%)
CIE-LABlab(18.45, 33.72, -41.29)
CIE-LCHlch(18.45, 53.31, 309.24°)
OKLaboklab(31.2% 0.0547 -0.1182)
OKLCHoklch(31.2% 0.13 294.8)
XYZxyz(4.6011, 2.6200, 13.8962)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A6A #4C6A1A
analogous
#1A246A #381A6A #601A6A
triadic
#381A6A #6A381A #1A6A38
tetradic
#381A6A #6A1A24 #4C6A1A #1A6A60
square
#381A6A #6A1A24 #4C6A1A #1A6A60
split-complementary
#381A6A #6A601A #246A1A
monochromatic
#0D0619 #1E0E39 #381A6A #52269B #6C32CC

Accessibility & contrast

On white

13.78
#381A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A6A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A6A#FFFFFF#000000##FFFFFF
##381A6A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#2A2E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381a6a;
/* rgb */ color: rgb(56, 26, 106);
/* oklch */ color: oklch(31.2% 0.130 294.8);
Tailwind
colors: {
  custom: {
    50: '#745995',
    500: '#381a6a',
    950: '#000000',
  },
}
SCSS
$custom: #381a6a;
$custom-light: #745995;
$custom-dark: #000000;
JSON
{
  "hex": "#381a6a",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 262.5,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31199,
    "c": 0.13025,
    "h": 294.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#381A6A
secondary
#7C9F40
accent
#E444A8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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