#381B8E#381B8E

#381B8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.173 H 284.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#381B8E
RGBrgb(56, 27, 142)
HSLhsl(255, 68%, 33%)
HSVhsv(255, 81%, 56%)
CMYKcmyk(60.6%, 81%, 0%, 44.3%)
CIE-LABlab(22.22, 43.87, -58.04)
CIE-LCHlch(22.22, 72.76, 307.08°)
OKLaboklab(34.93% 0.0436 -0.1673)
OKLCHoklch(34.93% 0.173 284.6)
XYZxyz(6.9038, 3.5772, 25.9126)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B8E #718E1B
analogous
#1B388E #381B8E #711B8E
triadic
#381B8E #8E381B #1B8E38
tetradic
#381B8E #8E1B38 #718E1B #1B8E71
square
#381B8E #8E1B38 #718E1B #1B8E71
split-complementary
#381B8E #8E711B #388E1B
monochromatic
#0F0727 #24115B #381B8E #4C25C1 #6D47DC

Accessibility & contrast

On white

12.24
#381B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B8E
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B8E#FFFFFF#000000##FFFFFF
##381B8E1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#013D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381b8e;
/* rgb */ color: rgb(56, 27, 142);
/* oklch */ color: oklch(34.9% 0.173 284.6);
Tailwind
colors: {
  custom: {
    50: '#7a5cb0',
    500: '#381b8e',
    950: '#000000',
  },
}
SCSS
$custom: #381b8e;
$custom-light: #7a5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#381b8e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 255.13,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34932,
    "c": 0.17285,
    "h": 284.6
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#381B8E
secondary
#A0BE47
accent
#EB3DBF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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