#381068#381068

#381068 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.139 H 297.6°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#381068
RGBrgb(56, 16, 104)
HSLhsl(267, 73%, 24%)
HSVhsv(267, 85%, 41%)
CMYKcmyk(46.2%, 84.6%, 0%, 59.2%)
CIE-LABlab(16.56, 38.03, -43.09)
CIE-LCHlch(16.56, 57.47, 311.43°)
OKLaboklab(29.81% 0.0645 -0.1234)
OKLCHoklch(29.81% 0.139 297.6)
XYZxyz(4.3142, 2.2107, 13.2934)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381068 #406810
analogous
#101468 #381068 #641068
triadic
#381068 #683810 #106838
tetradic
#381068 #681014 #406810 #106864
square
#381068 #681014 #406810 #106864
split-complementary
#381068 #686410 #146810
monochromatic
#0E041B #1B0833 #381068 #55189D #7120D2

Accessibility & contrast

On white

14.56
#381068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381068
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381068#FFFFFF#000000##FFFFFF
##3810681.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#2B293C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381068;
/* rgb */ color: rgb(56, 16, 104);
/* oklch */ color: oklch(29.8% 0.139 297.6);
Tailwind
colors: {
  custom: {
    50: '#755494',
    500: '#381068',
    950: '#000000',
  },
}
SCSS
$custom: #381068;
$custom-light: #755494;
$custom-dark: #000000;
JSON
{
  "hex": "#381068",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 267.273,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29809,
    "c": 0.13924,
    "h": 297.6
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#381068
secondary
#6FA034
accent
#F0389C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381068

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

Preview Lab → · Contrast checker → · Palette generator →

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