#381168#381168

#381168 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.138 H 297.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#381168
RGBrgb(56, 17, 104)
HSLhsl(267, 72%, 24%)
HSVhsv(267, 84%, 41%)
CMYKcmyk(46.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(16.70, 37.60, -42.84)
CIE-LCHlch(16.70, 57.00, 311.27°)
OKLaboklab(29.91% 0.0637 -0.1227)
OKLCHoklch(29.91% 0.138 297.4)
XYZxyz(4.3294, 2.2410, 13.2985)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381168 #416811
analogous
#111568 #381168 #631168
triadic
#381168 #683811 #116838
tetradic
#381168 #681115 #416811 #116863
square
#381168 #681115 #416811 #116863
split-complementary
#381168 #686311 #156811
monochromatic
#0E041A #1C0833 #381168 #541A9D #7122D1

Accessibility & contrast

On white

14.50
#381168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381168
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381168#FFFFFF#000000##FFFFFF
##3811681.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#2B293D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381168;
/* rgb */ color: rgb(56, 17, 104);
/* oklch */ color: oklch(29.9% 0.138 297.4);
Tailwind
colors: {
  custom: {
    50: '#745594',
    500: '#381168',
    950: '#000000',
  },
}
SCSS
$custom: #381168;
$custom-light: #745594;
$custom-dark: #000000;
JSON
{
  "hex": "#381168",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 266.897,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29912,
    "c": 0.13824,
    "h": 297.4
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#381168
secondary
#70A035
accent
#EF399D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381168

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

Preview Lab → · Contrast checker → · Palette generator →

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