#381161#381161

#381161 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.130 H 300.4°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#381161
RGBrgb(56, 17, 97)
HSLhsl(269, 70%, 22%)
HSVhsv(269, 82%, 38%)
CMYKcmyk(42.3%, 82.5%, 0%, 62%)
CIE-LABlab(16.03, 35.70, -39.33)
CIE-LCHlch(16.03, 53.12, 312.23°)
OKLaboklab(29.23% 0.0659 -0.1124)
OKLCHoklch(29.23% 0.13 300.4)
XYZxyz(3.9885, 2.1047, 11.5031)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381161 #3A6111
analogous
#111261 #381161 #601161
triadic
#381161 #613811 #116138
tetradic
#381161 #611112 #3A6111 #116160
square
#381161 #611112 #3A6111 #116160
split-complementary
#381161 #616011 #126111
monochromatic
#0F051A #1A082D #381161 #561A95 #7423C9

Accessibility & contrast

On white

14.78
#381161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381161
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381161#FFFFFF#000000##FFFFFF
##3811611.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#2E2639
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381161;
/* rgb */ color: rgb(56, 17, 97);
/* oklch */ color: oklch(29.2% 0.130 300.4);
Tailwind
colors: {
  custom: {
    50: '#73548f',
    500: '#381161',
    950: '#000000',
  },
}
SCSS
$custom: #381161;
$custom-light: #73548f;
$custom-dark: #000000;
JSON
{
  "hex": "#381161",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 269.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29231,
    "c": 0.13029,
    "h": 300.4
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#381161
secondary
#689934
accent
#ED3B96
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #381161

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

Preview Lab → · Contrast checker → · Palette generator →

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