#381767#381767

#381767 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.130 H 296.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#381767
RGBrgb(56, 23, 103)
HSLhsl(265, 63%, 25%)
HSVhsv(265, 78%, 40%)
CMYKcmyk(45.6%, 77.7%, 0%, 59.6%)
CIE-LABlab(17.61, 34.45, -40.70)
CIE-LCHlch(17.61, 53.32, 310.24°)
OKLaboklab(30.52% 0.0584 -0.1165)
OKLCHoklch(30.52% 0.13 296.6)
XYZxyz(4.3848, 2.4327, 13.0679)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381767 #466717
analogous
#171E67 #381767 #601767
triadic
#381767 #673817 #176738
tetradic
#381767 #67171E #466717 #176760
square
#381767 #67171E #466717 #176760
split-complementary
#381767 #676017 #1E6717
monochromatic
#0E0619 #1D0C35 #381767 #532299 #6E2DCB

Accessibility & contrast

On white

14.13
#381767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381767
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381767#FFFFFF#000000##FFFFFF
##3817671.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#2C2C3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381767;
/* rgb */ color: rgb(56, 23, 103);
/* oklch */ color: oklch(30.5% 0.130 296.6);
Tailwind
colors: {
  custom: {
    50: '#745893',
    500: '#381767',
    950: '#000000',
  },
}
SCSS
$custom: #381767;
$custom-light: #745893;
$custom-dark: #000000;
JSON
{
  "hex": "#381767",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 264.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30518,
    "c": 0.13031,
    "h": 296.6
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#381767
secondary
#759D3D
accent
#E741A2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381767

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

Preview Lab → · Contrast checker → · Palette generator →

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