#381476#381476

#381476 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.151 H 291.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#381476
RGBrgb(56, 20, 118)
HSLhsl(262, 71%, 27%)
HSVhsv(262, 83%, 46%)
CMYKcmyk(52.5%, 83.1%, 0%, 53.7%)
CIE-LABlab(18.58, 40.16, -48.86)
CIE-LCHlch(18.58, 63.25, 309.41°)
OKLaboklab(31.65% 0.0565 -0.1404)
OKLCHoklch(31.65% 0.151 291.9)
XYZxyz(5.1501, 2.6489, 17.3760)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381476 #527614
analogous
#142176 #381476 #691476
triadic
#381476 #763814 #147638
tetradic
#381476 #761421 #527614 #147669
square
#381476 #761421 #527614 #147669
split-complementary
#381476 #766914 #217614
monochromatic
#0C041A #1F0B42 #381476 #511DAA #6B2ADB

Accessibility & contrast

On white

13.73
#381476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381476
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381476#FFFFFF#000000##FFFFFF
##3814761.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#233145
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381476;
/* rgb */ color: rgb(56, 20, 118);
/* oklch */ color: oklch(31.6% 0.151 291.9);
Tailwind
colors: {
  custom: {
    50: '#76579e',
    500: '#381476',
    950: '#000000',
  },
}
SCSS
$custom: #381476;
$custom-light: #76579e;
$custom-dark: #000000;
JSON
{
  "hex": "#381476",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 262.041,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.15131,
    "h": 291.9
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#381476
secondary
#82AC3A
accent
#EE3AAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381476

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

Preview Lab → · Contrast checker → · Palette generator →

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