#381E88#381E88

#381E88 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.163 H 285.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#381E88
RGBrgb(56, 30, 136)
HSLhsl(255, 64%, 33%)
HSVhsv(255, 78%, 53%)
CMYKcmyk(58.8%, 77.9%, 0%, 46.7%)
CIE-LABlab(22.11, 40.59, -54.48)
CIE-LCHlch(22.11, 67.93, 306.69°)
OKLaboklab(34.67% 0.0433 -0.1569)
OKLCHoklch(34.67% 0.163 285.4)
XYZxyz(6.5377, 3.5465, 23.6278)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E88 #6E881E
analogous
#1E3988 #381E88 #6D1E88
triadic
#381E88 #88381E #1E8838
tetradic
#381E88 #881E39 #6E881E #1E886D
square
#381E88 #881E39 #6E881E #1E886D
split-complementary
#381E88 #886D1E #39881E
monochromatic
#0F0824 #231356 #381E88 #4D29BA #6C49D7

Accessibility & contrast

On white

12.29
#381E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E88
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E88#FFFFFF#000000##FFFFFF
##381E881.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#0F3C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381e88;
/* rgb */ color: rgb(56, 30, 136);
/* oklch */ color: oklch(34.7% 0.163 285.4);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#381e88',
    950: '#000000',
  },
}
SCSS
$custom: #381e88;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#381e88",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 254.717,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34667,
    "c": 0.16276,
    "h": 285.4
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#381E88
secondary
#9EB949
accent
#E741BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E88

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

Preview Lab → · Contrast checker → · Palette generator →

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