#381A7A#381A7A

#381A7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.150 H 289.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#381A7A
RGBrgb(56, 26, 122)
HSLhsl(259, 65%, 29%)
HSVhsv(259, 79%, 48%)
CMYKcmyk(54.1%, 78.7%, 0%, 52.2%)
CIE-LABlab(19.98, 38.44, -49.12)
CIE-LCHlch(19.98, 62.38, 308.05°)
OKLaboklab(32.75% 0.0505 -0.1412)
OKLCHoklch(32.75% 0.15 289.7)
XYZxyz(5.5121, 2.9844, 18.6942)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A7A #5C7A1A
analogous
#1A2C7A #381A7A #681A7A
triadic
#381A7A #7A381A #1A7A38
tetradic
#381A7A #7A1A2C #5C7A1A #1A7A68
square
#381A7A #7A1A2C #5C7A1A #1A7A68
split-complementary
#381A7A #7A681A #2C7A1A
monochromatic
#0C0519 #210F48 #381A7A #4F25AC #6A39D5

Accessibility & contrast

On white

13.15
#381A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A7A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A7A#FFFFFF#000000##FFFFFF
##381A7A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#1F3549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381a7a;
/* rgb */ color: rgb(56, 26, 122);
/* oklch */ color: oklch(32.7% 0.150 289.7);
Tailwind
colors: {
  custom: {
    50: '#775aa1',
    500: '#381a7a',
    950: '#000000',
  },
}
SCSS
$custom: #381a7a;
$custom-light: #775aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#381a7a",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 258.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32746,
    "c": 0.14994,
    "h": 289.7
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#381A7A
secondary
#8CAE41
accent
#E840B3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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