#381E72#381E72

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

Color values

HEX#381E72
RGBrgb(56, 30, 114)
HSLhsl(259, 58%, 28%)
HSVhsv(259, 74%, 45%)
CMYKcmyk(50.9%, 73.7%, 0%, 55.3%)
CIE-LABlab(19.98, 33.89, -43.99)
CIE-LCHlch(19.98, 55.53, 307.61°)
OKLaboklab(32.51% 0.0488 -0.1262)
OKLCHoklch(32.51% 0.135 291.2)
XYZxyz(5.1316, 2.9840, 16.2219)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E72 #58721E
analogous
#1E2E72 #381E72 #621E72
triadic
#381E72 #72381E #1E7238
tetradic
#381E72 #721E2E #58721E #1E7262
square
#381E72 #721E2E #58721E #1E7262
split-complementary
#381E72 #72621E #2E721E
monochromatic
#0C0618 #201142 #381E72 #502BA2 #6A3ECC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381E72#FFFFFF#000000##FFFFFF
##381E721.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)
#003274
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#253445
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381e72;
/* rgb */ color: rgb(56, 30, 114);
/* oklch */ color: oklch(32.5% 0.135 291.2);
Tailwind
colors: {
  custom: {
    50: '#755c9b',
    500: '#381e72',
    950: '#000000',
  },
}
SCSS
$custom: #381e72;
$custom-light: #755c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381e72",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 258.571,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3251,
    "c": 0.13529,
    "h": 291.2
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#381E72
secondary
#88A646
accent
#E246B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E72

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

Preview Lab → · Contrast checker → · Palette generator →

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