#381885#381885

#381885 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.165 H 287.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#381885
RGBrgb(56, 24, 133)
HSLhsl(258, 69%, 31%)
HSVhsv(258, 82%, 52%)
CMYKcmyk(57.9%, 82%, 0%, 47.8%)
CIE-LABlab(20.78, 42.64, -54.79)
CIE-LCHlch(20.78, 69.42, 307.89°)
OKLaboklab(33.64% 0.0485 -0.1577)
OKLCHoklch(33.64% 0.165 287.1)
XYZxyz(6.1899, 3.1871, 22.4748)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381885 #658518
analogous
#182E85 #381885 #6E1885
triadic
#381885 #853818 #188538
tetradic
#381885 #85182E #658518 #18856E
square
#381885 #85182E #658518 #18856E
split-complementary
#381885 #856E18 #2E8518
monochromatic
#0C051D #220F51 #381885 #4E21B9 #6B3CDC

Accessibility & contrast

On white

12.83
#381885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381885
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381885#FFFFFF#000000##FFFFFF
##3818851.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#14384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381885;
/* rgb */ color: rgb(56, 24, 133);
/* oklch */ color: oklch(33.6% 0.165 287.1);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#381885',
    950: '#000000',
  },
}
SCSS
$custom: #381885;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#381885",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 257.615,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.16503,
    "h": 287.1
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#381885
secondary
#95B940
accent
#EC3CB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381885

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

Preview Lab → · Contrast checker → · Palette generator →

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