#382163#382163

#382163 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.111 H 295.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#382163
RGBrgb(56, 33, 99)
HSLhsl(261, 50%, 26%)
HSVhsv(261, 67%, 39%)
CMYKcmyk(43.4%, 66.7%, 0%, 61.2%)
CIE-LABlab(19.35, 27.53, -35.25)
CIE-LCHlch(19.35, 44.73, 307.99°)
OKLaboklab(31.65% 0.0476 -0.1005)
OKLCHoklch(31.65% 0.111 295.4)
XYZxyz(4.4263, 2.8292, 12.1148)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382163 #4C6321
analogous
#212B63 #382163 #592163
triadic
#382163 #633821 #216338
tetradic
#382163 #63212B #4C6321 #216359
square
#382163 #63212B #4C6321 #216359
split-complementary
#382163 #635921 #2B6321
monochromatic
#0D0817 #1E1235 #382163 #523091 #6C40BF

Accessibility & contrast

On white

13.41
#382163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#382163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382163
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382163#FFFFFF#000000##FFFFFF
##3821631.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#002E62
Tritanopia (blue-blind)
#2D303E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #382163;
/* rgb */ color: rgb(56, 33, 99);
/* oklch */ color: oklch(31.7% 0.111 295.4);
Tailwind
colors: {
  custom: {
    50: '#725d90',
    500: '#382163',
    950: '#000000',
  },
}
SCSS
$custom: #382163;
$custom-light: #725d90;
$custom-dark: #000000;
JSON
{
  "hex": "#382163",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 99
  },
  "hsl": {
    "h": 260.909,
    "s": 50,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31653,
    "c": 0.11121,
    "h": 295.4
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#382163
secondary
#7C9749
accent
#DA4EA9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #382163

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

Preview Lab → · Contrast checker → · Palette generator →

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