#381E64#381E64

#381E64 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.3% C 0.117 H 296.0°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#381E64
RGBrgb(56, 30, 100)
HSLhsl(262, 54%, 25%)
HSVhsv(262, 70%, 39%)
CMYKcmyk(44%, 70%, 0%, 60.8%)
CIE-LABlab(18.75, 29.66, -36.87)
CIE-LCHlch(18.75, 47.32, 308.81°)
OKLaboklab(31.25% 0.0513 -0.1052)
OKLCHoklch(31.25% 0.117 296)
XYZxyz(4.3948, 2.6893, 12.3417)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E64 #4A641E
analogous
#1E2764 #381E64 #5B1E64
triadic
#381E64 #64381E #1E6438
tetradic
#381E64 #641E27 #4A641E #1E645B
square
#381E64 #641E27 #4A641E #1E645B
split-complementary
#381E64 #645B1E #27641E
monochromatic
#0D0718 #1E1035 #381E64 #522C93 #6D3AC2

Accessibility & contrast

On white

13.66
#381E64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381E64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E64
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E64#FFFFFF#000000##FFFFFF
##381E641.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#2D2E3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381e64;
/* rgb */ color: rgb(56, 30, 100);
/* oklch */ color: oklch(31.3% 0.117 296.0);
Tailwind
colors: {
  custom: {
    50: '#735c91',
    500: '#381e64',
    950: '#000000',
  },
}
SCSS
$custom: #381e64;
$custom-light: #735c91;
$custom-dark: #000000;
JSON
{
  "hex": "#381e64",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 100
  },
  "hsl": {
    "h": 262.286,
    "s": 53.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3125,
    "c": 0.11706,
    "h": 296
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#381E64
secondary
#7A9945
accent
#DD4BA7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #381E64

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

Preview Lab → · Contrast checker → · Palette generator →

#381E64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva