#381689#381689

#381689 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.171 H 286.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#381689
RGBrgb(56, 22, 137)
HSLhsl(258, 72%, 31%)
HSVhsv(258, 84%, 54%)
CMYKcmyk(59.1%, 83.9%, 0%, 46.3%)
CIE-LABlab(20.91, 44.68, -57.09)
CIE-LCHlch(20.91, 72.49, 308.05°)
OKLaboklab(33.86% 0.0483 -0.1644)
OKLCHoklch(33.86% 0.171 286.4)
XYZxyz(6.4318, 3.2203, 23.9447)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381689 #678916
analogous
#162D89 #381689 #711689
triadic
#381689 #893816 #168938
tetradic
#381689 #89162D #678916 #168971
square
#381689 #89162D #678916 #168971
split-complementary
#381689 #897116 #2D8916
monochromatic
#0D0520 #220E54 #381689 #4E1EBE #6B3ADF

Accessibility & contrast

On white

12.77
#381689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381689
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381689#FFFFFF#000000##FFFFFF
##3816891.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#0E3951
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381689;
/* rgb */ color: rgb(56, 22, 137);
/* oklch */ color: oklch(33.9% 0.171 286.4);
Tailwind
colors: {
  custom: {
    50: '#7a59ad',
    500: '#381689',
    950: '#000000',
  },
}
SCSS
$custom: #381689;
$custom-light: #7a59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#381689",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 257.739,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3386,
    "c": 0.17139,
    "h": 286.4
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#381689
secondary
#97BD3E
accent
#EF39B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381689

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

Preview Lab → · Contrast checker → · Palette generator →

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