#381E98#381E98

#381E98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.182 H 282.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#381E98
RGBrgb(56, 30, 152)
HSLhsl(253, 67%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(63.2%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.79, 45.41, -61.64)
CIE-LCHlch(23.79, 76.56, 306.38°)
OKLaboklab(36.34% 0.0386 -0.1778)
OKLCHoklch(36.34% 0.182 282.2)
XYZxyz(7.7609, 4.0357, 30.0697)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E98 #7E981E
analogous
#1E4198 #381E98 #751E98
triadic
#381E98 #98381E #1E9838
tetradic
#381E98 #981E41 #7E981E #1E9875
square
#381E98 #981E41 #7E981E #1E9875
split-complementary
#381E98 #98751E #41981E
monochromatic
#120A32 #251465 #381E98 #4B28CB #7153DD

Accessibility & contrast

On white

11.62
#381E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#381E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E98
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E98#FFFFFF#000000##FFFFFF
##381E981.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381e98;
/* rgb */ color: rgb(56, 30, 152);
/* oklch */ color: oklch(36.3% 0.182 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#381e98',
    950: '#000000',
  },
}
SCSS
$custom: #381e98;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381e98",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 252.787,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.18195,
    "h": 282.2
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#381E98
secondary
#A9C051
accent
#EA3EC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381E98

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

Preview Lab → · Contrast checker → · Palette generator →

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