#381B7A#381B7A

#381B7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.149 H 289.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#381B7A
RGBrgb(56, 27, 122)
HSLhsl(258, 64%, 29%)
HSVhsv(258, 78%, 48%)
CMYKcmyk(54.1%, 77.9%, 0%, 52.2%)
CIE-LABlab(20.16, 37.93, -48.83)
CIE-LCHlch(20.16, 61.83, 307.84°)
OKLaboklab(32.87% 0.0496 -0.1403)
OKLCHoklch(32.87% 0.149 289.5)
XYZxyz(5.5347, 3.0295, 18.7017)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7A #5D7A1B
analogous
#1B2E7A #381B7A #681B7A
triadic
#381B7A #7A381B #1B7A38
tetradic
#381B7A #7A1B2E #5D7A1B #1B7A68
square
#381B7A #7A1B2E #5D7A1B #1B7A68
split-complementary
#381B7A #7A681B #2E7A1B
monochromatic
#0C0619 #211048 #381B7A #4F26AC #6A3CD4

Accessibility & contrast

On white

13.08
#381B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B7A
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7A#FFFFFF#000000##FFFFFF
##381B7A1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#1F3549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381b7a;
/* rgb */ color: rgb(56, 27, 122);
/* oklch */ color: oklch(32.9% 0.149 289.5);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#381b7a',
    950: '#000000',
  },
}
SCSS
$custom: #381b7a;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7a",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 258.316,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.14885,
    "h": 289.5
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#381B7A
secondary
#8DAE43
accent
#E741B4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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