#381A8C#381A8C

#381A8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.171 H 285.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#381A8C
RGBrgb(56, 26, 140)
HSLhsl(256, 69%, 33%)
HSVhsv(256, 81%, 55%)
CMYKcmyk(60%, 81.4%, 0%, 45.1%)
CIE-LABlab(21.85, 43.75, -57.42)
CIE-LCHlch(21.85, 72.19, 307.31°)
OKLaboklab(34.61% 0.0449 -0.1654)
OKLCHoklch(34.61% 0.171 285.2)
XYZxyz(6.7325, 3.4726, 25.1214)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A8C #6E8C1A
analogous
#1A358C #381A8C #711A8C
triadic
#381A8C #8C381A #1A8C38
tetradic
#381A8C #8C1A35 #6E8C1A #1A8C71
square
#381A8C #8C1A35 #6E8C1A #1A8C71
split-complementary
#381A8C #8C711A #358C1A
monochromatic
#0F0725 #231058 #381A8C #4D24C0 #6C44DC

Accessibility & contrast

On white

12.39
#381A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A8C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A8C#FFFFFF#000000##FFFFFF
##381A8C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#073C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381a8c;
/* rgb */ color: rgb(56, 26, 140);
/* oklch */ color: oklch(34.6% 0.171 285.2);
Tailwind
colors: {
  custom: {
    50: '#7a5baf',
    500: '#381a8c',
    950: '#000000',
  },
}
SCSS
$custom: #381a8c;
$custom-light: #7a5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#381a8c",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 255.789,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34607,
    "c": 0.17141,
    "h": 285.2
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#381A8C
secondary
#9EBE44
accent
#EC3CBD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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