#381F94#381F94

#381F94 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.176 H 282.8°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#381F94
RGBrgb(56, 31, 148)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(62.2%, 79.1%, 0%, 42%)
CIE-LABlab(23.53, 43.72, -59.60)
CIE-LCHlch(23.53, 73.91, 306.26°)
OKLaboklab(36.04% 0.0392 -0.1719)
OKLCHoklch(36.04% 0.176 282.8)
XYZxyz(7.4645, 3.9583, 28.3819)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F94 #7B941F
analogous
#1F4094 #381F94 #731F94
triadic
#381F94 #94381F #1F9438
tetradic
#381F94 #941F40 #7B941F #1F9473
square
#381F94 #941F40 #7B941F #1F9473
split-complementary
#381F94 #94731F #40941F
monochromatic
#120A2F #251461 #381F94 #4B2AC7 #7053DB

Accessibility & contrast

On white

11.72
#381F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F94
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F94#FFFFFF#000000##FFFFFF
##381F941.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381f94;
/* rgb */ color: rgb(56, 31, 148);
/* oklch */ color: oklch(36.0% 0.176 282.8);
Tailwind
colors: {
  custom: {
    50: '#7b5eb5',
    500: '#381f94',
    950: '#000000',
  },
}
SCSS
$custom: #381f94;
$custom-light: #7b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381f94",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 252.821,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36036,
    "c": 0.17627,
    "h": 282.8
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#381F94
secondary
#A7BE51
accent
#E83FC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381F94

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

Preview Lab → · Contrast checker → · Palette generator →

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