#381B9F#381B9F

#381B9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.193 H 281.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#381B9F
RGBrgb(56, 27, 159)
HSLhsl(253, 71%, 36%)
HSVhsv(253, 83%, 62%)
CMYKcmyk(64.8%, 83%, 0%, 37.6%)
CIE-LABlab(24.09, 48.85, -65.44)
CIE-LCHlch(24.09, 81.66, 306.74°)
OKLaboklab(36.78% 0.0379 -0.1888)
OKLCHoklch(36.78% 0.193 281.4)
XYZxyz(8.2789, 4.1272, 33.1545)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B9F #829F1B
analogous
#1B409F #381B9F #7A1B9F
triadic
#381B9F #9F381B #1B9F38
tetradic
#381B9F #9F1B40 #829F1B #1B9F7A
square
#381B9F #9F1B40 #829F1B #1B9F7A
split-complementary
#381B9F #9F7A1B #409F1B
monochromatic
#130936 #26126B #381B9F #4A24D3 #7253E2

Accessibility & contrast

On white

11.50
#381B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#381B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B9F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B9F#FFFFFF#000000##FFFFFF
##381B9F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b9f;
/* rgb */ color: rgb(56, 27, 159);
/* oklch */ color: oklch(36.8% 0.193 281.4);
Tailwind
colors: {
  custom: {
    50: '#7d5dbd',
    500: '#381b9f',
    950: '#000000',
  },
}
SCSS
$custom: #381b9f;
$custom-light: #7d5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#381b9f",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 253.182,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36775,
    "c": 0.19259,
    "h": 281.4
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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