#381864#381864

#381864 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.125 H 297.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#381864
RGBrgb(56, 24, 100)
HSLhsl(265, 61%, 24%)
HSVhsv(265, 76%, 39%)
CMYKcmyk(44%, 76%, 0%, 60.8%)
CIE-LABlab(17.53, 33.06, -38.87)
CIE-LCHlch(17.53, 51.03, 310.39°)
OKLaboklab(30.37% 0.0581 -0.1111)
OKLCHoklch(30.37% 0.125 297.6)
XYZxyz(4.2572, 2.4140, 12.2958)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381864 #446418
analogous
#181E64 #381864 #5E1864
triadic
#381864 #643818 #186438
tetradic
#381864 #64181E #446418 #18645E
square
#381864 #64181E #446418 #18645E
split-complementary
#381864 #645E18 #1E6418
monochromatic
#0E0619 #1C0C33 #381864 #542495 #6F30C7

Accessibility & contrast

On white

14.16
#381864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381864
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381864#FFFFFF#000000##FFFFFF
##3818641.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#2D2B3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381864;
/* rgb */ color: rgb(56, 24, 100);
/* oklch */ color: oklch(30.4% 0.125 297.6);
Tailwind
colors: {
  custom: {
    50: '#735891',
    500: '#381864',
    950: '#000000',
  },
}
SCSS
$custom: #381864;
$custom-light: #735891;
$custom-dark: #000000;
JSON
{
  "hex": "#381864",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 265.263,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30372,
    "c": 0.12537,
    "h": 297.6
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#381864
secondary
#739A3E
accent
#E443A1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #381864

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

Preview Lab → · Contrast checker → · Palette generator →

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