#381362#381362

#381362 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.129 H 299.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#381362
RGBrgb(56, 19, 98)
HSLhsl(268, 68%, 23%)
HSVhsv(268, 81%, 38%)
CMYKcmyk(42.9%, 80.6%, 0%, 61.6%)
CIE-LABlab(16.45, 35.04, -39.31)
CIE-LCHlch(16.45, 52.66, 311.72°)
OKLaboklab(29.55% 0.0637 -0.1123)
OKLCHoklch(29.55% 0.129 299.6)
XYZxyz(4.0678, 2.1883, 11.7610)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381362 #3D6213
analogous
#131662 #381362 #5F1362
triadic
#381362 #623813 #136238
tetradic
#381362 #621316 #3D6213 #13625F
square
#381362 #621316 #3D6213 #13625F
split-complementary
#381362 #625F13 #166213
monochromatic
#0F051A #1B092F #381362 #551D95 #7327C9

Accessibility & contrast

On white

14.61
#381362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#381362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381362
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381362#FFFFFF#000000##FFFFFF
##3813621.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#2E283A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381362;
/* rgb */ color: rgb(56, 19, 98);
/* oklch */ color: oklch(29.6% 0.129 299.6);
Tailwind
colors: {
  custom: {
    50: '#73558f',
    500: '#381362',
    950: '#000000',
  },
}
SCSS
$custom: #381362;
$custom-light: #73558f;
$custom-dark: #000000;
JSON
{
  "hex": "#381362",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 268.101,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29554,
    "c": 0.12916,
    "h": 299.6
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#381362
secondary
#6C9A37
accent
#EA3D99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381362

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

Preview Lab → · Contrast checker → · Palette generator →

#381362 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva