#381874#381874

#381874 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.145 H 291.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#381874
RGBrgb(56, 24, 116)
HSLhsl(261, 66%, 27%)
HSVhsv(261, 79%, 45%)
CMYKcmyk(51.7%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.03, 37.69, -46.83)
CIE-LCHlch(19.03, 60.11, 308.83°)
OKLaboklab(31.9% 0.0539 -0.1345)
OKLCHoklch(31.9% 0.145 291.9)
XYZxyz(5.1090, 2.7548, 16.7821)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381874 #547418
analogous
#182674 #381874 #661874
triadic
#381874 #743818 #187438
tetradic
#381874 #741826 #547418 #187466
square
#381874 #741826 #547418 #187466
split-complementary
#381874 #746618 #267418
monochromatic
#0C0519 #200E41 #381874 #5022A7 #6A32D5

Accessibility & contrast

On white

13.54
#381874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381874
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381874#FFFFFF#000000##FFFFFF
##3818741.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381874;
/* rgb */ color: rgb(56, 24, 116);
/* oklch */ color: oklch(31.9% 0.145 291.9);
Tailwind
colors: {
  custom: {
    50: '#76599d',
    500: '#381874',
    950: '#000000',
  },
}
SCSS
$custom: #381874;
$custom-light: #76599d;
$custom-dark: #000000;
JSON
{
  "hex": "#381874",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 260.87,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.319,
    "c": 0.14487,
    "h": 291.9
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#381874
secondary
#84A93F
accent
#E93FAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381874

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

Preview Lab → · Contrast checker → · Palette generator →

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