#381264#381264

#381264 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 298.9°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#381264
RGBrgb(56, 18, 100)
HSLhsl(268, 69%, 23%)
HSVhsv(268, 82%, 39%)
CMYKcmyk(44%, 82%, 0%, 60.8%)
CIE-LABlab(16.47, 36.06, -40.59)
CIE-LCHlch(16.47, 54.29, 311.62°)
OKLaboklab(29.63% 0.0641 -0.1161)
OKLCHoklch(29.63% 0.133 298.9)
XYZxyz(4.1469, 2.1934, 12.2590)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381264 #3E6412
analogous
#121564 #381264 #611264
triadic
#381264 #643812 #126438
tetradic
#381264 #641215 #3E6412 #126461
square
#381264 #641215 #3E6412 #126461
split-complementary
#381264 #646112 #156412
monochromatic
#0F051A #1B0930 #381264 #551B98 #7225CC

Accessibility & contrast

On white

14.60
#381264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381264
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381264#FFFFFF#000000##FFFFFF
##3812641.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#2D283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381264;
/* rgb */ color: rgb(56, 18, 100);
/* oklch */ color: oklch(29.6% 0.133 298.9);
Tailwind
colors: {
  custom: {
    50: '#745591',
    500: '#381264',
    950: '#000000',
  },
}
SCSS
$custom: #381264;
$custom-light: #745591;
$custom-dark: #000000;
JSON
{
  "hex": "#381264",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 267.805,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2963,
    "c": 0.13261,
    "h": 298.9
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#381264
secondary
#6D9C36
accent
#EC3B9A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381264

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

Preview Lab → · Contrast checker → · Palette generator →

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