#381B6D#381B6D

#381B6D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.133 H 293.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#381B6D
RGBrgb(56, 27, 109)
HSLhsl(261, 60%, 27%)
HSVhsv(261, 75%, 43%)
CMYKcmyk(48.6%, 75.2%, 0%, 57.3%)
CIE-LABlab(18.92, 34.06, -42.48)
CIE-LCHlch(18.92, 54.45, 308.72°)
OKLaboklab(31.62% 0.053 -0.1217)
OKLCHoklch(31.62% 0.133 293.5)
XYZxyz(4.7824, 2.7286, 14.7397)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B6D #506D1B
analogous
#1B276D #381B6D #611B6D
triadic
#381B6D #6D381B #1B6D38
tetradic
#381B6D #6D1B27 #506D1B #1B6D61
square
#381B6D #6D1B27 #506D1B #1B6D61
split-complementary
#381B6D #6D611B #276D1B
monochromatic
#0D0619 #1F0F3C #381B6D #51279E #6B35CD

Accessibility & contrast

On white

13.59
#381B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B6D
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B6D#FFFFFF#000000##FFFFFF
##381B6D1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#283042
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381b6d;
/* rgb */ color: rgb(56, 27, 109);
/* oklch */ color: oklch(31.6% 0.133 293.5);
Tailwind
colors: {
  custom: {
    50: '#745a98',
    500: '#381b6d',
    950: '#000000',
  },
}
SCSS
$custom: #381b6d;
$custom-light: #745a98;
$custom-dark: #000000;
JSON
{
  "hex": "#381b6d",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 261.22,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.13274,
    "h": 293.5
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#381B6D
secondary
#80A242
accent
#E344AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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