#381673#381673

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

Color values

HEX#381673
RGBrgb(56, 22, 115)
HSLhsl(262, 68%, 27%)
HSVhsv(262, 81%, 45%)
CMYKcmyk(51.3%, 80.9%, 0%, 54.9%)
CIE-LABlab(18.59, 38.38, -46.91)
CIE-LCHlch(18.59, 60.61, 309.29°)
OKLaboklab(31.56% 0.0559 -0.1347)
OKLCHoklch(31.56% 0.146 292.6)
XYZxyz(5.0114, 2.6522, 16.4642)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381673 #517316
analogous
#162373 #381673 #671673
triadic
#381673 #733816 #167338
tetradic
#381673 #731623 #517316 #167367
square
#381673 #731623 #517316 #167367
split-complementary
#381673 #736716 #237316
monochromatic
#0D051A #1F0C40 #381673 #5120A6 #6B2DD7

Accessibility & contrast

On white

13.72
#381673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381673
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381673#FFFFFF#000000##FFFFFF
##3816731.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381673;
/* rgb */ color: rgb(56, 22, 115);
/* oklch */ color: oklch(31.6% 0.146 292.6);
Tailwind
colors: {
  custom: {
    50: '#76589c',
    500: '#381673',
    950: '#000000',
  },
}
SCSS
$custom: #381673;
$custom-light: #76589c;
$custom-dark: #000000;
JSON
{
  "hex": "#381673",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 261.935,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31562,
    "c": 0.14582,
    "h": 292.6
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#381673
secondary
#81A93C
accent
#EB3DAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381673

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

Preview Lab → · Contrast checker → · Palette generator →

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