#381989#381989

#381989 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.169 H 286.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#381989
RGBrgb(56, 25, 137)
HSLhsl(257, 69%, 32%)
HSVhsv(257, 82%, 54%)
CMYKcmyk(59.1%, 81.8%, 0%, 46.3%)
CIE-LABlab(21.36, 43.34, -56.33)
CIE-LCHlch(21.36, 71.08, 307.57°)
OKLaboklab(34.18% 0.0465 -0.1623)
OKLCHoklch(34.18% 0.169 286)
XYZxyz(6.4925, 3.3418, 23.9650)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381989 #6A8919
analogous
#193289 #381989 #701989
triadic
#381989 #893819 #198938
tetradic
#381989 #891932 #6A8919 #198970
square
#381989 #891932 #6A8919 #198970
split-complementary
#381989 #897019 #328919
monochromatic
#0E0621 #231055 #381989 #4D22BD #6B40DC

Accessibility & contrast

On white

12.59
#381989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381989
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381989#FFFFFF#000000##FFFFFF
##3819891.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#0D3A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381989;
/* rgb */ color: rgb(56, 25, 137);
/* oklch */ color: oklch(34.2% 0.169 286.0);
Tailwind
colors: {
  custom: {
    50: '#795bad',
    500: '#381989',
    950: '#000000',
  },
}
SCSS
$custom: #381989;
$custom-light: #795bad;
$custom-dark: #000000;
JSON
{
  "hex": "#381989",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 256.607,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.1688,
    "h": 286
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#381989
secondary
#9ABC41
accent
#EC3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381989

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

Preview Lab → · Contrast checker → · Palette generator →

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