#381372#381372

#381372 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.148 H 293.4°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#381372
RGBrgb(56, 19, 114)
HSLhsl(263, 71%, 26%)
HSVhsv(263, 83%, 45%)
CMYKcmyk(50.9%, 83.3%, 0%, 55.3%)
CIE-LABlab(18.01, 39.48, -47.21)
CIE-LCHlch(18.01, 61.54, 309.90°)
OKLaboklab(31.13% 0.0587 -0.1355)
OKLCHoklch(31.13% 0.148 293.4)
XYZxyz(4.9002, 2.5212, 16.1448)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381372 #4D7213
analogous
#131D72 #381372 #671372
triadic
#381372 #723813 #137238
tetradic
#381372 #72131D #4D7213 #137267
square
#381372 #72131D #4D7213 #137267
split-complementary
#381372 #726713 #1D7213
monochromatic
#0D041A #1E0A3E #381372 #521CA6 #6C25DB

Accessibility & contrast

On white

13.96
#381372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381372
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381372#FFFFFF#000000##FFFFFF
##3813721.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#262E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381372;
/* rgb */ color: rgb(56, 19, 114);
/* oklch */ color: oklch(31.1% 0.148 293.4);
Tailwind
colors: {
  custom: {
    50: '#76569b',
    500: '#381372',
    950: '#000000',
  },
}
SCSS
$custom: #381372;
$custom-light: #76569b;
$custom-dark: #000000;
JSON
{
  "hex": "#381372",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 263.368,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31128,
    "c": 0.14768,
    "h": 293.4
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#381372
secondary
#7DA938
accent
#EE3AA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381372

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

Preview Lab → · Contrast checker → · Palette generator →

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