#381A98#381A98

#381A98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.185 H 282.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#381A98
RGBrgb(56, 26, 152)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(63.2%, 82.9%, 0%, 40.4%)
CIE-LABlab(23.16, 47.26, -62.69)
CIE-LCHlch(23.16, 78.50, 307.01°)
OKLaboklab(35.9% 0.0408 -0.1808)
OKLCHoklch(35.9% 0.185 282.7)
XYZxyz(7.6660, 3.8460, 30.0381)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A98 #7A981A
analogous
#1A3B98 #381A98 #771A98
triadic
#381A98 #98381A #1A9838
tetradic
#381A98 #981A3B #7A981A #1A9877
square
#381A98 #981A3B #7A981A #1A9877
split-complementary
#381A98 #98771A #3B981A
monochromatic
#11082F #251164 #381A98 #4B23CC #6F4CE0

Accessibility & contrast

On white

11.87
#381A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A98
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A98#FFFFFF#000000##FFFFFF
##381A981.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381a98;
/* rgb */ color: rgb(56, 26, 152);
/* oklch */ color: oklch(35.9% 0.185 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cb8',
    500: '#381a98',
    950: '#000000',
  },
}
SCSS
$custom: #381a98;
$custom-light: #7c5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381a98",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 254.286,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35902,
    "c": 0.18535,
    "h": 282.7
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#381A98
secondary
#A6C24B
accent
#EE3AC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381A98

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

Preview Lab → · Contrast checker → · Palette generator →

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