#381165#381165

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

Color values

HEX#381165
RGBrgb(56, 17, 101)
HSLhsl(268, 71%, 23%)
HSVhsv(268, 83%, 40%)
CMYKcmyk(44.6%, 83.2%, 0%, 60.4%)
CIE-LABlab(16.41, 36.78, -41.35)
CIE-LCHlch(16.41, 55.34, 311.66°)
OKLaboklab(29.62% 0.0647 -0.1183)
OKLCHoklch(29.62% 0.135 298.7)
XYZxyz(4.1797, 2.1812, 12.5102)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381165 #3E6511
analogous
#111465 #381165 #621165
triadic
#381165 #653811 #116538
tetradic
#381165 #651114 #3E6511 #116562
square
#381165 #651114 #3E6511 #116562
split-complementary
#381165 #656211 #146511
monochromatic
#0F041A #1B0831 #381165 #551A99 #7223CE

Accessibility & contrast

On white

14.62
#381165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381165
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381165#FFFFFF#000000##FFFFFF
##3811651.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#2D283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381165;
/* rgb */ color: rgb(56, 17, 101);
/* oklch */ color: oklch(29.6% 0.135 298.7);
Tailwind
colors: {
  custom: {
    50: '#745492',
    500: '#381165',
    950: '#000000',
  },
}
SCSS
$custom: #381165;
$custom-light: #745492;
$custom-dark: #000000;
JSON
{
  "hex": "#381165",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 267.857,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.13484,
    "h": 298.7
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#381165
secondary
#6D9D35
accent
#EE3A9A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #381165

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

Preview Lab → · Contrast checker → · Palette generator →

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