#381573#381573

#381573 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.147 H 292.7°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#381573
RGBrgb(56, 21, 115)
HSLhsl(262, 69%, 27%)
HSVhsv(262, 82%, 45%)
CMYKcmyk(51.3%, 81.7%, 0%, 54.9%)
CIE-LABlab(18.43, 38.85, -47.18)
CIE-LCHlch(18.43, 61.12, 309.47°)
OKLaboklab(31.45% 0.0567 -0.1354)
OKLCHoklch(31.45% 0.147 292.7)
XYZxyz(4.9927, 2.6147, 16.4580)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381573 #507315
analogous
#152173 #381573 #671573
triadic
#381573 #733815 #157338
tetradic
#381573 #731521 #507315 #157367
square
#381573 #731521 #507315 #157367
split-complementary
#381573 #736715 #217315
monochromatic
#0D051A #1F0C3F #381573 #511EA7 #6B2AD8

Accessibility & contrast

On white

13.79
#381573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381573
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381573#FFFFFF#000000##FFFFFF
##3815731.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#253044
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381573;
/* rgb */ color: rgb(56, 21, 115);
/* oklch */ color: oklch(31.4% 0.147 292.7);
Tailwind
colors: {
  custom: {
    50: '#76579c',
    500: '#381573',
    950: '#000000',
  },
}
SCSS
$custom: #381573;
$custom-light: #76579c;
$custom-dark: #000000;
JSON
{
  "hex": "#381573",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 262.34,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31448,
    "c": 0.14684,
    "h": 292.7
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#381573
secondary
#80A93B
accent
#EC3CAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381573

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

Preview Lab → · Contrast checker → · Palette generator →

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