#381674#381674

#381674 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.147 H 292.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#381674
RGBrgb(56, 22, 116)
HSLhsl(262, 68%, 27%)
HSVhsv(262, 81%, 45%)
CMYKcmyk(51.7%, 81%, 0%, 54.5%)
CIE-LABlab(18.69, 38.67, -47.39)
CIE-LCHlch(18.69, 61.16, 309.21°)
OKLaboklab(31.66% 0.0556 -0.1361)
OKLCHoklch(31.66% 0.147 292.2)
XYZxyz(5.0693, 2.6753, 16.7689)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381674 #527416
analogous
#162374 #381674 #671674
triadic
#381674 #743816 #167438
tetradic
#381674 #741623 #527416 #167467
square
#381674 #741623 #527416 #167467
split-complementary
#381674 #746716 #237416
monochromatic
#0C051A #1F0C41 #381674 #5120A7 #6B2DD7

Accessibility & contrast

On white

13.68
#381674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381674
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381674#FFFFFF#000000##FFFFFF
##3816741.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381674;
/* rgb */ color: rgb(56, 22, 116);
/* oklch */ color: oklch(31.7% 0.147 292.2);
Tailwind
colors: {
  custom: {
    50: '#76589d',
    500: '#381674',
    950: '#000000',
  },
}
SCSS
$custom: #381674;
$custom-light: #76589d;
$custom-dark: #000000;
JSON
{
  "hex": "#381674",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 261.702,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.14699,
    "h": 292.2
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#381674
secondary
#82AA3C
accent
#EB3DAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381674

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

Preview Lab → · Contrast checker → · Palette generator →

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