#381A70#381A70

#381A70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.138 H 292.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#381A70
RGBrgb(56, 26, 112)
HSLhsl(261, 62%, 27%)
HSVhsv(261, 77%, 44%)
CMYKcmyk(50%, 76.8%, 0%, 56.1%)
CIE-LABlab(19.01, 35.49, -44.28)
CIE-LCHlch(19.01, 56.75, 308.71°)
OKLaboklab(31.77% 0.0532 -0.127)
OKLCHoklch(31.77% 0.138 292.7)
XYZxyz(4.9241, 2.7492, 15.5973)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A70 #52701A
analogous
#1A2770 #381A70 #631A70
triadic
#381A70 #70381A #1A7038
tetradic
#381A70 #701A27 #52701A #1A7063
square
#381A70 #701A27 #52701A #1A7063
split-complementary
#381A70 #70631A #27701A
monochromatic
#0C0619 #1F0E3E #381A70 #5126A2 #6B34D0

Accessibility & contrast

On white

13.55
#381A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A70
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A70#FFFFFF#000000##FFFFFF
##381A701.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#273143
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381a70;
/* rgb */ color: rgb(56, 26, 112);
/* oklch */ color: oklch(31.8% 0.138 292.7);
Tailwind
colors: {
  custom: {
    50: '#755a9a',
    500: '#381a70',
    950: '#000000',
  },
}
SCSS
$custom: #381a70;
$custom-light: #755a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#381a70",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 260.93,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.13771,
    "h": 292.7
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#381A70
secondary
#82A541
accent
#E542AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A70

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

Preview Lab → · Contrast checker → · Palette generator →

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