#381F8D#381F8D

#381F8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.168 H 284.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#381F8D
RGBrgb(56, 31, 141)
HSLhsl(254, 64%, 34%)
HSVhsv(254, 78%, 55%)
CMYKcmyk(60.3%, 78%, 0%, 44.7%)
CIE-LABlab(22.80, 41.59, -56.46)
CIE-LCHlch(22.80, 70.13, 306.38°)
OKLaboklab(35.31% 0.0412 -0.1627)
OKLCHoklch(35.31% 0.168 284.2)
XYZxyz(6.9271, 3.7434, 25.5517)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F8D #748D1F
analogous
#1F3D8D #381F8D #6F1F8D
triadic
#381F8D #8D381F #1F8D38
tetradic
#381F8D #8D1F3D #748D1F #1F8D6F
square
#381F8D #8D1F3D #748D1F #1F8D6F
split-complementary
#381F8D #8D6F1F #3D8D1F
monochromatic
#100929 #24145B #381F8D #4C2ABF #6E4ED8

Accessibility & contrast

On white

12.01
#381F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F8D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F8D#FFFFFF#000000##FFFFFF
##381F8D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#033F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381f8d;
/* rgb */ color: rgb(56, 31, 141);
/* oklch */ color: oklch(35.3% 0.168 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a5eaf',
    500: '#381f8d',
    950: '#000000',
  },
}
SCSS
$custom: #381f8d;
$custom-light: #7a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#381f8d",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 253.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35307,
    "c": 0.16782,
    "h": 284.2
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#381F8D
secondary
#A2BB4D
accent
#E741C1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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