#381774#381774

#381774 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.146 H 292.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#381774
RGBrgb(56, 23, 116)
HSLhsl(261, 67%, 27%)
HSVhsv(261, 80%, 45%)
CMYKcmyk(51.7%, 80.2%, 0%, 54.5%)
CIE-LABlab(18.86, 38.19, -47.11)
CIE-LCHlch(18.86, 60.64, 309.03°)
OKLaboklab(31.78% 0.0548 -0.1353)
OKLCHoklch(31.78% 0.146 292)
XYZxyz(5.0888, 2.7143, 16.7754)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381774 #537417
analogous
#172574 #381774 #661774
triadic
#381774 #743817 #177438
tetradic
#381774 #741725 #537417 #177466
square
#381774 #741725 #537417 #177466
split-complementary
#381774 #746617 #257417
monochromatic
#0C051A #1F0D41 #381774 #5121A7 #6B30D6

Accessibility & contrast

On white

13.61
#381774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381774
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381774#FFFFFF#000000##FFFFFF
##3817741.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#243145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381774;
/* rgb */ color: rgb(56, 23, 116);
/* oklch */ color: oklch(31.8% 0.146 292.0);
Tailwind
colors: {
  custom: {
    50: '#76589d',
    500: '#381774',
    950: '#000000',
  },
}
SCSS
$custom: #381774;
$custom-light: #76589d;
$custom-dark: #000000;
JSON
{
  "hex": "#381774",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 261.29,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.14595,
    "h": 292
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#381774
secondary
#83A93D
accent
#EA3EAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381774

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

Preview Lab → · Contrast checker → · Palette generator →

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