#381E89#381E89

#381E89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.164 H 285.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#381E89
RGBrgb(56, 30, 137)
HSLhsl(255, 64%, 33%)
HSVhsv(255, 78%, 54%)
CMYKcmyk(59.1%, 78.1%, 0%, 46.3%)
CIE-LABlab(22.21, 40.89, -54.93)
CIE-LCHlch(22.21, 68.48, 306.66°)
OKLaboklab(34.77% 0.043 -0.1582)
OKLCHoklch(34.77% 0.164 285.2)
XYZxyz(6.6091, 3.5750, 24.0039)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E89 #6F891E
analogous
#1E3A89 #381E89 #6D1E89
triadic
#381E89 #89381E #1E8938
tetradic
#381E89 #891E3A #6F891E #1E896D
square
#381E89 #891E3A #6F891E #1E896D
split-complementary
#381E89 #896D1E #3A891E
monochromatic
#0F0825 #231357 #381E89 #4D29BB #6C4AD7

Accessibility & contrast

On white

12.24
#381E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E89
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E89#FFFFFF#000000##FFFFFF
##381E891.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#0D3C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381e89;
/* rgb */ color: rgb(56, 30, 137);
/* oklch */ color: oklch(34.8% 0.164 285.2);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#381e89',
    950: '#000000',
  },
}
SCSS
$custom: #381e89;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#381e89",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 254.579,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.16398,
    "h": 285.2
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#381E89
secondary
#9EBA49
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E89

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

Preview Lab → · Contrast checker → · Palette generator →

#381E89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva