#381772#381772

#381772 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 292.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#381772
RGBrgb(56, 23, 114)
HSLhsl(262, 66%, 27%)
HSVhsv(262, 80%, 45%)
CMYKcmyk(50.9%, 79.8%, 0%, 55.3%)
CIE-LABlab(18.66, 37.61, -46.15)
CIE-LCHlch(18.66, 59.53, 309.18°)
OKLaboklab(31.58% 0.0554 -0.1325)
OKLCHoklch(31.58% 0.144 292.7)
XYZxyz(4.9737, 2.6683, 16.1693)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381772 #517217
analogous
#172472 #381772 #661772
triadic
#381772 #723817 #177238
tetradic
#381772 #721724 #517217 #177266
square
#381772 #721724 #517217 #177266
split-complementary
#381772 #726617 #247217
monochromatic
#0D0519 #1F0D3F #381772 #5121A5 #6B2ED5

Accessibility & contrast

On white

13.69
#381772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381772
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381772#FFFFFF#000000##FFFFFF
##3817721.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#253044
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381772;
/* rgb */ color: rgb(56, 23, 114);
/* oklch */ color: oklch(31.6% 0.144 292.7);
Tailwind
colors: {
  custom: {
    50: '#75589b',
    500: '#381772',
    950: '#000000',
  },
}
SCSS
$custom: #381772;
$custom-light: #75589b;
$custom-dark: #000000;
JSON
{
  "hex": "#381772",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 261.758,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31581,
    "c": 0.14357,
    "h": 292.7
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#381772
secondary
#81A83D
accent
#E93EAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381772

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

Preview Lab → · Contrast checker → · Palette generator →

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