#381A6E#381A6E

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

Color values

HEX#381A6E
RGBrgb(56, 26, 110)
HSLhsl(261, 62%, 27%)
HSVhsv(261, 76%, 43%)
CMYKcmyk(49.1%, 76.4%, 0%, 56.9%)
CIE-LABlab(18.82, 34.90, -43.29)
CIE-LCHlch(18.82, 55.61, 308.87°)
OKLaboklab(31.57% 0.0537 -0.1241)
OKLCHoklch(31.57% 0.135 293.4)
XYZxyz(4.8140, 2.7052, 15.0173)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A6E #506E1A
analogous
#1A266E #381A6E #621A6E
triadic
#381A6E #6E381A #1A6E38
tetradic
#381A6E #6E1A26 #506E1A #1A6E62
square
#381A6E #6E1A26 #506E1A #1A6E62
split-complementary
#381A6E #6E621A #266E1A
monochromatic
#0D0619 #1F0E3D #381A6E #5126A0 #6B34CF

Accessibility & contrast

On white

13.63
#381A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A6E
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A6E#FFFFFF#000000##FFFFFF
##381A6E1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381a6e;
/* rgb */ color: rgb(56, 26, 110);
/* oklch */ color: oklch(31.6% 0.135 293.4);
Tailwind
colors: {
  custom: {
    50: '#755a98',
    500: '#381a6e',
    950: '#000000',
  },
}
SCSS
$custom: #381a6e;
$custom-light: #755a98;
$custom-dark: #000000;
JSON
{
  "hex": "#381a6e",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 261.429,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31575,
    "c": 0.13522,
    "h": 293.4
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#381A6E
secondary
#80A341
accent
#E543AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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