#381988#381988

#381988 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.168 H 286.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#381988
RGBrgb(56, 25, 136)
HSLhsl(257, 69%, 32%)
HSVhsv(257, 82%, 53%)
CMYKcmyk(58.8%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.26, 43.05, -55.88)
CIE-LCHlch(21.26, 70.54, 307.61°)
OKLaboklab(34.07% 0.0468 -0.1609)
OKLCHoklch(34.07% 0.168 286.2)
XYZxyz(6.4211, 3.3132, 23.5889)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381988 #698819
analogous
#193288 #381988 #701988
triadic
#381988 #883819 #198838
tetradic
#381988 #881932 #698819 #198870
square
#381988 #881932 #698819 #198870
split-complementary
#381988 #887019 #328819
monochromatic
#0D0621 #230F54 #381988 #4D23BC #6B40DC

Accessibility & contrast

On white

12.63
#381988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381988
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381988#FFFFFF#000000##FFFFFF
##3819881.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#0F3A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381988;
/* rgb */ color: rgb(56, 25, 136);
/* oklch */ color: oklch(34.1% 0.168 286.2);
Tailwind
colors: {
  custom: {
    50: '#795bac',
    500: '#381988',
    950: '#000000',
  },
}
SCSS
$custom: #381988;
$custom-light: #795bac;
$custom-dark: #000000;
JSON
{
  "hex": "#381988",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 256.757,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.16762,
    "h": 286.2
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#381988
secondary
#99BB41
accent
#EC3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381988

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

Preview Lab → · Contrast checker → · Palette generator →

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