#381F95#381F95

#381F95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.177 H 282.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#381F95
RGBrgb(56, 31, 149)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(62.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.64, 44.02, -60.04)
CIE-LCHlch(23.64, 74.45, 306.25°)
OKLaboklab(36.14% 0.0389 -0.1731)
OKLCHoklch(36.14% 0.177 282.6)
XYZxyz(7.5440, 3.9901, 28.8006)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F95 #7C951F
analogous
#1F4195 #381F95 #731F95
triadic
#381F95 #95381F #1F9538
tetradic
#381F95 #951F41 #7C951F #1F9573
square
#381F95 #951F41 #7C951F #1F9573
split-complementary
#381F95 #95731F #41951F
monochromatic
#120A30 #251462 #381F95 #4B2AC8 #7053DB

Accessibility & contrast

On white

11.68
#381F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F95
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F95#FFFFFF#000000##FFFFFF
##381F951.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381f95;
/* rgb */ color: rgb(56, 31, 149);
/* oklch */ color: oklch(36.1% 0.177 282.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fb5',
    500: '#381f95',
    950: '#000000',
  },
}
SCSS
$custom: #381f95;
$custom-light: #7b5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381f95",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 252.712,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36141,
    "c": 0.17746,
    "h": 282.6
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#381F95
secondary
#A7BF51
accent
#E93FC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381F95

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

Preview Lab → · Contrast checker → · Palette generator →

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