#381160#381160

#381160 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.129 H 300.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#381160
RGBrgb(56, 17, 96)
HSLhsl(270, 70%, 22%)
HSVhsv(270, 82%, 38%)
CMYKcmyk(41.7%, 82.3%, 0%, 62.4%)
CIE-LABlab(15.93, 35.43, -38.82)
CIE-LCHlch(15.93, 52.56, 312.39°)
OKLaboklab(29.14% 0.0662 -0.1109)
OKLCHoklch(29.14% 0.129 300.8)
XYZxyz(3.9421, 2.0861, 11.2590)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381160 #396011
analogous
#111260 #381160 #601160
triadic
#381160 #603811 #116038
tetradic
#381160 #601112 #396011 #116060
square
#381160 #601112 #396011 #116060
split-complementary
#381160 #606011 #126011
monochromatic
#0F051A #1A082C #381160 #561A94 #7523C8

Accessibility & contrast

On white

14.82
#381160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#381160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381160
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381160#FFFFFF#000000##FFFFFF
##3811601.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#2F2638
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381160;
/* rgb */ color: rgb(56, 17, 96);
/* oklch */ color: oklch(29.1% 0.129 300.8);
Tailwind
colors: {
  custom: {
    50: '#73548e',
    500: '#381160',
    950: '#000000',
  },
}
SCSS
$custom: #381160;
$custom-light: #73548e;
$custom-dark: #000000;
JSON
{
  "hex": "#381160",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 269.62,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29136,
    "c": 0.12914,
    "h": 300.8
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#381160
secondary
#679934
accent
#ED3B95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381160

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

Preview Lab → · Contrast checker → · Palette generator →

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