#381B9E#381B9E

#381B9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.191 H 281.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#381B9E
RGBrgb(56, 27, 158)
HSLhsl(253, 71%, 36%)
HSVhsv(253, 83%, 62%)
CMYKcmyk(64.6%, 82.9%, 0%, 38%)
CIE-LABlab(23.98, 48.56, -65.01)
CIE-LCHlch(23.98, 81.14, 306.76°)
OKLaboklab(36.67% 0.0383 -0.1876)
OKLCHoklch(36.67% 0.191 281.5)
XYZxyz(8.1924, 4.0926, 32.6994)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B9E #819E1B
analogous
#1B409E #381B9E #7A1B9E
triadic
#381B9E #9E381B #1B9E38
tetradic
#381B9E #9E1B40 #819E1B #1B9E7A
square
#381B9E #9E1B40 #819E1B #1B9E7A
split-complementary
#381B9E #9E7A1B #409E1B
monochromatic
#130935 #25126A #381B9E #4B24D2 #7252E1

Accessibility & contrast

On white

11.55
#381B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#381B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B9E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B9E#FFFFFF#000000##FFFFFF
##381B9E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381b9e;
/* rgb */ color: rgb(56, 27, 158);
/* oklch */ color: oklch(36.7% 0.191 281.5);
Tailwind
colors: {
  custom: {
    50: '#7d5dbc',
    500: '#381b9e',
    950: '#000000',
  },
}
SCSS
$custom: #381b9e;
$custom-light: #7d5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#381b9e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 253.282,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36665,
    "c": 0.19144,
    "h": 281.5
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#381B9E
secondary
#ABC451
accent
#EE3AC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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