#38219D#38219D

#38219D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.185 H 281.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#38219D
RGBrgb(56, 33, 157)
HSLhsl(251, 65%, 37%)
HSVhsv(251, 79%, 62%)
CMYKcmyk(64.3%, 79%, 0%, 38.4%)
CIE-LABlab(24.83, 45.45, -62.98)
CIE-LCHlch(24.83, 77.67, 305.82°)
OKLaboklab(37.23% 0.0353 -0.1817)
OKLCHoklch(37.23% 0.185 281)
XYZxyz(8.2586, 4.3622, 32.2985)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38219D #869D21
analogous
#21489D #38219D #76219D
triadic
#38219D #9D3821 #219D38
tetradic
#38219D #9D2148 #869D21 #219D76
square
#38219D #9D2148 #869D21 #219D76
split-complementary
#38219D #9D7621 #489D21
monochromatic
#140C38 #26166A #38219D #4A2CD0 #745CDD

Accessibility & contrast

On white

11.21
#38219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#38219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38219D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38219D#FFFFFF#000000##FFFFFF
##38219D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38219d;
/* rgb */ color: rgb(56, 33, 157);
/* oklch */ color: oklch(37.2% 0.185 281.0);
Tailwind
colors: {
  custom: {
    50: '#7d60bb',
    500: '#38219d',
    950: '#000000',
  },
}
SCSS
$custom: #38219d;
$custom-light: #7d60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#38219d",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 251.129,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37229,
    "c": 0.18515,
    "h": 281
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#38219D
secondary
#AEC159
accent
#E840C9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38219D

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

Preview Lab → · Contrast checker → · Palette generator →

#38219D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva