#381164#381164

#381164 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.134 H 299.1°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#381164
RGBrgb(56, 17, 100)
HSLhsl(268, 71%, 23%)
HSVhsv(268, 83%, 39%)
CMYKcmyk(44%, 83%, 0%, 60.8%)
CIE-LABlab(16.31, 36.51, -40.85)
CIE-LCHlch(16.31, 54.79, 311.79°)
OKLaboklab(29.52% 0.065 -0.1168)
OKLCHoklch(29.52% 0.134 299.1)
XYZxyz(4.1310, 2.1617, 12.2537)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381164 #3D6411
analogous
#111364 #381164 #611164
triadic
#381164 #643811 #116438
tetradic
#381164 #641113 #3D6411 #116461
square
#381164 #641113 #3D6411 #116461
split-complementary
#381164 #646111 #136411
monochromatic
#0F041A #1B0830 #381164 #551A98 #7323CD

Accessibility & contrast

On white

14.66
#381164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#381164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381164
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381164#FFFFFF#000000##FFFFFF
##3811641.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#2D283A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381164;
/* rgb */ color: rgb(56, 17, 100);
/* oklch */ color: oklch(29.5% 0.134 299.1);
Tailwind
colors: {
  custom: {
    50: '#745491',
    500: '#381164',
    950: '#000000',
  },
}
SCSS
$custom: #381164;
$custom-light: #745491;
$custom-dark: #000000;
JSON
{
  "hex": "#381164",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 268.193,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2952,
    "c": 0.1337,
    "h": 299.1
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#381164
secondary
#6C9C35
accent
#EE3A99
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381164

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

Preview Lab → · Contrast checker → · Palette generator →

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