#381A6C#381A6C

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

Color values

HEX#381A6C
RGBrgb(56, 26, 108)
HSLhsl(262, 61%, 26%)
HSVhsv(262, 76%, 42%)
CMYKcmyk(48.1%, 75.9%, 0%, 57.6%)
CIE-LABlab(18.64, 34.31, -42.30)
CIE-LCHlch(18.64, 54.46, 309.05°)
OKLaboklab(31.39% 0.0542 -0.1212)
OKLCHoklch(31.39% 0.133 294.1)
XYZxyz(4.7063, 2.6621, 14.4503)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A6C #4E6C1A
analogous
#1A256C #381A6C #611A6C
triadic
#381A6C #6C381A #1A6C38
tetradic
#381A6C #6C1A25 #4E6C1A #1A6C61
square
#381A6C #6C1A25 #4E6C1A #1A6C61
split-complementary
#381A6C #6C611A #256C1A
monochromatic
#0D0619 #1E0E3B #381A6C #52269D #6B33CE

Accessibility & contrast

On white

13.70
#381A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A6C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A6C#FFFFFF#000000##FFFFFF
##381A6C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#292F41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381a6c;
/* rgb */ color: rgb(56, 26, 108);
/* oklch */ color: oklch(31.4% 0.133 294.1);
Tailwind
colors: {
  custom: {
    50: '#745997',
    500: '#381a6c',
    950: '#000000',
  },
}
SCSS
$custom: #381a6c;
$custom-light: #745997;
$custom-dark: #000000;
JSON
{
  "hex": "#381a6c",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 261.951,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31386,
    "c": 0.13274,
    "h": 294.1
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#381A6C
secondary
#7EA141
accent
#E443A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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