#381766#381766

#381766 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.129 H 297.0°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#381766
RGBrgb(56, 23, 102)
HSLhsl(265, 63%, 25%)
HSVhsv(265, 77%, 40%)
CMYKcmyk(45.1%, 77.5%, 0%, 60%)
CIE-LABlab(17.52, 34.16, -40.20)
CIE-LCHlch(17.52, 52.75, 310.36°)
OKLaboklab(30.42% 0.0587 -0.115)
OKLCHoklch(30.42% 0.129 297)
XYZxyz(4.3349, 2.4128, 12.8051)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381766 #456617
analogous
#171E66 #381766 #601766
triadic
#381766 #663817 #176638
tetradic
#381766 #66171E #456617 #176660
square
#381766 #66171E #456617 #176660
split-complementary
#381766 #666017 #1E6617
monochromatic
#0E0619 #1D0C34 #381766 #532298 #6F2ECA

Accessibility & contrast

On white

14.16
#381766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381766
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381766#FFFFFF#000000##FFFFFF
##3817661.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#2C2B3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381766;
/* rgb */ color: rgb(56, 23, 102);
/* oklch */ color: oklch(30.4% 0.129 297.0);
Tailwind
colors: {
  custom: {
    50: '#745792',
    500: '#381766',
    950: '#000000',
  },
}
SCSS
$custom: #381766;
$custom-light: #745792;
$custom-dark: #000000;
JSON
{
  "hex": "#381766",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 265.063,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30424,
    "c": 0.12909,
    "h": 297
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#381766
secondary
#749C3C
accent
#E642A1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381766

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

Preview Lab → · Contrast checker → · Palette generator →

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