#381968#381968

#381968 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.129 H 295.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#381968
RGBrgb(56, 25, 104)
HSLhsl(264, 61%, 25%)
HSVhsv(264, 76%, 41%)
CMYKcmyk(46.2%, 76%, 0%, 59.2%)
CIE-LABlab(18.08, 33.68, -40.60)
CIE-LCHlch(18.08, 52.75, 309.68°)
OKLaboklab(30.88% 0.0562 -0.1162)
OKLCHoklch(30.88% 0.129 295.8)
XYZxyz(4.4765, 2.5354, 13.3475)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381968 #496819
analogous
#192268 #381968 #5F1968
triadic
#381968 #683819 #196838
tetradic
#381968 #681922 #496819 #19685F
square
#381968 #681922 #496819 #19685F
split-complementary
#381968 #685F19 #226819
monochromatic
#0D0619 #1D0D37 #381968 #532599 #6D31CB

Accessibility & contrast

On white

13.93
#381968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381968
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381968#FFFFFF#000000##FFFFFF
##3819681.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2B2D3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381968;
/* rgb */ color: rgb(56, 25, 104);
/* oklch */ color: oklch(30.9% 0.129 295.8);
Tailwind
colors: {
  custom: {
    50: '#745994',
    500: '#381968',
    950: '#000000',
  },
}
SCSS
$custom: #381968;
$custom-light: #745994;
$custom-dark: #000000;
JSON
{
  "hex": "#381968",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 263.544,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30876,
    "c": 0.12904,
    "h": 295.8
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#381968
secondary
#799E3F
accent
#E443A5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381968

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

Preview Lab → · Contrast checker → · Palette generator →

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