#381668#381668

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

Color values

HEX#381668
RGBrgb(56, 22, 104)
HSLhsl(265, 65%, 25%)
HSVhsv(265, 79%, 41%)
CMYKcmyk(46.2%, 78.8%, 0%, 59.2%)
CIE-LABlab(17.53, 35.24, -41.50)
CIE-LCHlch(17.53, 54.44, 310.34°)
OKLaboklab(30.49% 0.0592 -0.1188)
OKLCHoklch(30.49% 0.133 296.5)
XYZxyz(4.4158, 2.4140, 13.3273)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381668 #466816
analogous
#161D68 #381668 #611668
triadic
#381668 #683816 #166838
tetradic
#381668 #68161D #466816 #166861
square
#381668 #68161D #466816 #166861
split-complementary
#381668 #686116 #1D6816
monochromatic
#0E0519 #1D0B35 #381668 #53219B #6E2BCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381668#FFFFFF#000000##FFFFFF
##3816681.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)
#002B6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#2B2C3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381668;
/* rgb */ color: rgb(56, 22, 104);
/* oklch */ color: oklch(30.5% 0.133 296.5);
Tailwind
colors: {
  custom: {
    50: '#745794',
    500: '#381668',
    950: '#000000',
  },
}
SCSS
$custom: #381668;
$custom-light: #745794;
$custom-dark: #000000;
JSON
{
  "hex": "#381668",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 264.878,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30486,
    "c": 0.13272,
    "h": 296.5
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#381668
secondary
#759F3B
accent
#E840A2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381668

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

Preview Lab → · Contrast checker → · Palette generator →

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