#381783#381783

#381783 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.164 H 287.7°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#381783
RGBrgb(56, 23, 131)
HSLhsl(258, 70%, 30%)
HSVhsv(258, 82%, 51%)
CMYKcmyk(57.3%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.41, 42.52, -54.14)
CIE-LCHlch(20.41, 68.83, 308.14°)
OKLaboklab(33.32% 0.0499 -0.1558)
OKLCHoklch(33.32% 0.164 287.7)
XYZxyz(6.0328, 3.0919, 21.7472)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381783 #628317
analogous
#172C83 #381783 #6E1783
triadic
#381783 #833817 #178338
tetradic
#381783 #83172C #628317 #17836E
square
#381783 #83172C #628317 #17836E
split-complementary
#381783 #836E17 #2C8317
monochromatic
#0B051B #220E4F #381783 #4E20B7 #6A38DC

Accessibility & contrast

On white

12.98
#381783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381783
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381783#FFFFFF#000000##FFFFFF
##3817831.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#17374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381783;
/* rgb */ color: rgb(56, 23, 131);
/* oklch */ color: oklch(33.3% 0.164 287.7);
Tailwind
colors: {
  custom: {
    50: '#7859a8',
    500: '#381783',
    950: '#000000',
  },
}
SCSS
$custom: #381783;
$custom-light: #7859a8;
$custom-dark: #000000;
JSON
{
  "hex": "#381783",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 258.333,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33323,
    "c": 0.1636,
    "h": 287.7
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#381783
secondary
#92B73F
accent
#ED3BB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381783

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

Preview Lab → · Contrast checker → · Palette generator →

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