#381B75#381B75

#381B75 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.143 H 290.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#381B75
RGBrgb(56, 27, 117)
HSLhsl(259, 63%, 28%)
HSVhsv(259, 77%, 46%)
CMYKcmyk(52.1%, 76.9%, 0%, 54.1%)
CIE-LABlab(19.67, 36.44, -46.42)
CIE-LCHlch(19.67, 59.02, 308.13°)
OKLaboklab(32.38% 0.051 -0.1333)
OKLCHoklch(32.38% 0.143 290.9)
XYZxyz(5.2328, 2.9088, 17.1119)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B75 #58751B
analogous
#1B2B75 #381B75 #651B75
triadic
#381B75 #75381B #1B7538
tetradic
#381B75 #751B2B #58751B #1B7565
square
#381B75 #751B2B #58751B #1B7565
split-complementary
#381B75 #75651B #2B751B
monochromatic
#0C0619 #201043 #381B75 #5026A7 #6A39D1

Accessibility & contrast

On white

13.28
#381B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B75
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B75#FFFFFF#000000##FFFFFF
##381B751.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#233346
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381b75;
/* rgb */ color: rgb(56, 27, 117);
/* oklch */ color: oklch(32.4% 0.143 290.9);
Tailwind
colors: {
  custom: {
    50: '#765b9e',
    500: '#381b75',
    950: '#000000',
  },
}
SCSS
$custom: #381b75;
$custom-light: #765b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381b75",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 259.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.1427,
    "h": 290.9
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#381B75
secondary
#88A942
accent
#E642B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B75

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

Preview Lab → · Contrast checker → · Palette generator →

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