#381771#381771

#381771 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.142 H 293.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#381771
RGBrgb(56, 23, 113)
HSLhsl(262, 66%, 27%)
HSVhsv(262, 80%, 44%)
CMYKcmyk(50.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.56, 37.32, -45.66)
CIE-LCHlch(18.56, 58.97, 309.26°)
OKLaboklab(31.48% 0.0557 -0.131)
OKLCHoklch(31.48% 0.142 293)
XYZxyz(4.9171, 2.6456, 15.8712)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381771 #507117
analogous
#172371 #381771 #651771
triadic
#381771 #713817 #177138
tetradic
#381771 #711723 #507117 #177165
square
#381771 #711723 #507117 #177165
split-complementary
#381771 #716517 #237117
monochromatic
#0D0519 #1F0D3E #381771 #5121A4 #6B2ED4

Accessibility & contrast

On white

13.73
#381771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381771
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381771#FFFFFF#000000##FFFFFF
##3817711.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#263043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381771;
/* rgb */ color: rgb(56, 23, 113);
/* oklch */ color: oklch(31.5% 0.142 293.0);
Tailwind
colors: {
  custom: {
    50: '#75589b',
    500: '#381771',
    950: '#000000',
  },
}
SCSS
$custom: #381771;
$custom-light: #75589b;
$custom-dark: #000000;
JSON
{
  "hex": "#381771",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 262,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31482,
    "c": 0.14236,
    "h": 293
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#381771
secondary
#80A73D
accent
#E93FAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381771

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

Preview Lab → · Contrast checker → · Palette generator →

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