#381790#381790

#381790 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.179 H 284.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#381790
RGBrgb(56, 23, 144)
HSLhsl(256, 72%, 33%)
HSVhsv(256, 84%, 56%)
CMYKcmyk(61.1%, 84%, 0%, 43.5%)
CIE-LABlab(21.82, 46.25, -59.94)
CIE-LCHlch(21.82, 75.71, 307.65°)
OKLaboklab(34.72% 0.0453 -0.1728)
OKLCHoklch(34.72% 0.179 284.7)
XYZxyz(6.9698, 3.4667, 26.6820)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381790 #6F9017
analogous
#173290 #381790 #751790
triadic
#381790 #903817 #179038
tetradic
#381790 #901732 #6F9017 #179075
square
#381790 #901732 #6F9017 #179075
split-complementary
#381790 #907517 #329017
monochromatic
#0F0626 #230F5B #381790 #4D1FC5 #6C41E1

Accessibility & contrast

On white

12.40
#381790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381790
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381790#FFFFFF#000000##FFFFFF
##3817901.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381790;
/* rgb */ color: rgb(56, 23, 144);
/* oklch */ color: oklch(34.7% 0.179 284.7);
Tailwind
colors: {
  custom: {
    50: '#7b5ab2',
    500: '#381790',
    950: '#000000',
  },
}
SCSS
$custom: #381790;
$custom-light: #7b5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#381790",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 256.364,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.17859,
    "h": 284.7
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#381790
secondary
#9EC142
accent
#EF39BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381790

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

Preview Lab → · Contrast checker → · Palette generator →

#381790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva