#38219F#38219F

#38219F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.188 H 280.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#38219F
RGBrgb(56, 33, 159)
HSLhsl(251, 66%, 38%)
HSVhsv(251, 79%, 62%)
CMYKcmyk(64.8%, 79.2%, 0%, 37.6%)
CIE-LABlab(25.05, 46.06, -63.85)
CIE-LCHlch(25.05, 78.73, 305.80°)
OKLaboklab(37.44% 0.0347 -0.1843)
OKLCHoklch(37.44% 0.188 280.7)
XYZxyz(8.4308, 4.4310, 33.2052)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38219F #889F21
analogous
#21499F #38219F #77219F
triadic
#38219F #9F3821 #219F38
tetradic
#38219F #9F2149 #889F21 #219F77
square
#38219F #9F2149 #889F21 #219F77
split-complementary
#38219F #9F7721 #499F21
monochromatic
#140C3A #26166C #38219F #4A2CD2 #745DDD

Accessibility & contrast

On white

11.13
#38219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#38219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38219F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38219F#FFFFFF#000000##FFFFFF
##38219F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38219f;
/* rgb */ color: rgb(56, 33, 159);
/* oklch */ color: oklch(37.4% 0.188 280.7);
Tailwind
colors: {
  custom: {
    50: '#7d60bd',
    500: '#38219f',
    950: '#000000',
  },
}
SCSS
$custom: #38219f;
$custom-light: #7d60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#38219f",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 250.952,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37441,
    "c": 0.18753,
    "h": 280.7
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

primary
#38219F
secondary
#AFC25A
accent
#E93FCA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38219F

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

Preview Lab → · Contrast checker → · Palette generator →

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