#381773#381773

#381773 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.145 H 292.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#381773
RGBrgb(56, 23, 115)
HSLhsl(262, 67%, 27%)
HSVhsv(262, 80%, 45%)
CMYKcmyk(51.3%, 80%, 0%, 54.9%)
CIE-LABlab(18.76, 37.90, -46.63)
CIE-LCHlch(18.76, 60.09, 309.10°)
OKLaboklab(31.68% 0.0551 -0.1339)
OKLCHoklch(31.68% 0.145 292.4)
XYZxyz(5.0309, 2.6912, 16.4707)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381773 #527317
analogous
#172473 #381773 #661773
triadic
#381773 #733817 #177338
tetradic
#381773 #731724 #527317 #177366
square
#381773 #731724 #527317 #177366
split-complementary
#381773 #736617 #247317
monochromatic
#0C051A #1F0D40 #381773 #5121A6 #6B2FD5

Accessibility & contrast

On white

13.65
#381773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381773
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381773#FFFFFF#000000##FFFFFF
##3817731.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#253144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381773;
/* rgb */ color: rgb(56, 23, 115);
/* oklch */ color: oklch(31.7% 0.145 292.4);
Tailwind
colors: {
  custom: {
    50: '#76589c',
    500: '#381773',
    950: '#000000',
  },
}
SCSS
$custom: #381773;
$custom-light: #76589c;
$custom-dark: #000000;
JSON
{
  "hex": "#381773",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 261.522,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.14475,
    "h": 292.4
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#381773
secondary
#82A93D
accent
#EA3EAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381773

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

Preview Lab → · Contrast checker → · Palette generator →

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