#381066#381066

#381066 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.137 H 298.4°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#381066
RGBrgb(56, 16, 102)
HSLhsl(268, 73%, 23%)
HSVhsv(268, 84%, 40%)
CMYKcmyk(45.1%, 84.3%, 0%, 60%)
CIE-LABlab(16.36, 37.49, -42.09)
CIE-LCHlch(16.36, 56.37, 311.69°)
OKLaboklab(29.61% 0.0652 -0.1205)
OKLCHoklch(29.61% 0.137 298.4)
XYZxyz(4.2138, 2.1706, 12.7647)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381066 #3E6610
analogous
#101366 #381066 #631066
triadic
#381066 #663810 #106638
tetradic
#381066 #661013 #3E6610 #106663
square
#381066 #661013 #3E6610 #106663
split-complementary
#381066 #666310 #136610
monochromatic
#0F041A #1B0831 #381066 #55189B #7221D0

Accessibility & contrast

On white

14.64
#381066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381066
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381066#FFFFFF#000000##FFFFFF
##3810661.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#2C283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381066;
/* rgb */ color: rgb(56, 16, 102);
/* oklch */ color: oklch(29.6% 0.137 298.4);
Tailwind
colors: {
  custom: {
    50: '#745492',
    500: '#381066',
    950: '#000000',
  },
}
SCSS
$custom: #381066;
$custom-light: #745492;
$custom-dark: #000000;
JSON
{
  "hex": "#381066",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 267.907,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2961,
    "c": 0.137,
    "h": 298.4
  },
  "luminance": 0.02171
}

Semantic roles & 50–950 ramp

primary
#381066
secondary
#6D9E33
accent
#F0389A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381066

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

Preview Lab → · Contrast checker → · Palette generator →

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