#381366#381366

#381366 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.134 H 297.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#381366
RGBrgb(56, 19, 102)
HSLhsl(267, 69%, 24%)
HSVhsv(267, 81%, 40%)
CMYKcmyk(45.1%, 81.4%, 0%, 60%)
CIE-LABlab(16.82, 36.14, -41.33)
CIE-LCHlch(16.82, 54.91, 311.17°)
OKLaboklab(29.94% 0.0626 -0.1183)
OKLCHoklch(29.94% 0.134 297.9)
XYZxyz(4.2614, 2.2657, 12.7806)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381366 #416613
analogous
#131766 #381366 #611366
triadic
#381366 #663813 #136638
tetradic
#381366 #661317 #416613 #136661
square
#381366 #661317 #416613 #136661
split-complementary
#381366 #666113 #176613
monochromatic
#0E051A #1C0932 #381366 #541D9A #7126CD

Accessibility & contrast

On white

14.45
#381366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381366
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381366#FFFFFF#000000##FFFFFF
##3813661.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#2C293C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381366;
/* rgb */ color: rgb(56, 19, 102);
/* oklch */ color: oklch(29.9% 0.134 297.9);
Tailwind
colors: {
  custom: {
    50: '#745592',
    500: '#381366',
    950: '#000000',
  },
}
SCSS
$custom: #381366;
$custom-light: #745592;
$custom-dark: #000000;
JSON
{
  "hex": "#381366",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 266.747,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29936,
    "c": 0.13381,
    "h": 297.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#381366
secondary
#709D37
accent
#EB3C9D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381366

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

Preview Lab → · Contrast checker → · Palette generator →

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