#381B8D#381B8D

#381B8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.172 H 284.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#381B8D
RGBrgb(56, 27, 141)
HSLhsl(255, 68%, 33%)
HSVhsv(255, 81%, 55%)
CMYKcmyk(60.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(22.11, 43.58, -57.60)
CIE-LCHlch(22.11, 72.22, 307.11°)
OKLaboklab(34.83% 0.0439 -0.166)
OKLCHoklch(34.83% 0.172 284.8)
XYZxyz(6.8291, 3.5473, 25.5190)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B8D #708D1B
analogous
#1B378D #381B8D #711B8D
triadic
#381B8D #8D381B #1B8D38
tetradic
#381B8D #8D1B37 #708D1B #1B8D71
square
#381B8D #8D1B37 #708D1B #1B8D71
split-complementary
#381B8D #8D711B #378D1B
monochromatic
#0F0726 #24115A #381B8D #4C25C0 #6D47DC

Accessibility & contrast

On white

12.28
#381B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B8D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B8D#FFFFFF#000000##FFFFFF
##381B8D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#043D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381b8d;
/* rgb */ color: rgb(56, 27, 141);
/* oklch */ color: oklch(34.8% 0.172 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a5caf',
    500: '#381b8d',
    950: '#000000',
  },
}
SCSS
$custom: #381b8d;
$custom-light: #7a5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#381b8d",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 255.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.17167,
    "h": 284.8
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#381B8D
secondary
#9FBD46
accent
#EB3DBF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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