#381A6F#381A6F

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

Color values

HEX#381A6F
RGBrgb(56, 26, 111)
HSLhsl(261, 62%, 27%)
HSVhsv(261, 77%, 44%)
CMYKcmyk(49.5%, 76.6%, 0%, 56.5%)
CIE-LABlab(18.92, 35.19, -43.79)
CIE-LCHlch(18.92, 56.18, 308.79°)
OKLaboklab(31.67% 0.0535 -0.1256)
OKLCHoklch(31.67% 0.136 293.1)
XYZxyz(4.8687, 2.7271, 15.3057)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A6F #516F1A
analogous
#1A276F #381A6F #631A6F
triadic
#381A6F #6F381A #1A6F38
tetradic
#381A6F #6F1A27 #516F1A #1A6F63
square
#381A6F #6F1A27 #516F1A #1A6F63
split-complementary
#381A6F #6F631A #276F1A
monochromatic
#0D0619 #1F0E3D #381A6F #5126A1 #6B34CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381A6F#FFFFFF#000000##FFFFFF
##381A6F1.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)
#002F71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#273043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381a6f;
/* rgb */ color: rgb(56, 26, 111);
/* oklch */ color: oklch(31.7% 0.136 293.1);
Tailwind
colors: {
  custom: {
    50: '#755a99',
    500: '#381a6f',
    950: '#000000',
  },
}
SCSS
$custom: #381a6f;
$custom-light: #755a99;
$custom-dark: #000000;
JSON
{
  "hex": "#381a6f",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 261.176,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3167,
    "c": 0.13647,
    "h": 293.1
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#381A6F
secondary
#81A441
accent
#E543AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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