#38219E#38219E

#38219E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.186 H 280.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#38219E
RGBrgb(56, 33, 158)
HSLhsl(251, 65%, 37%)
HSVhsv(251, 79%, 62%)
CMYKcmyk(64.6%, 79.1%, 0%, 38%)
CIE-LABlab(24.94, 45.75, -63.42)
CIE-LCHlch(24.94, 78.20, 305.81°)
OKLaboklab(37.34% 0.035 -0.183)
OKLCHoklch(37.34% 0.186 280.8)
XYZxyz(8.3443, 4.3964, 32.7500)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38219E #879E21
analogous
#21499E #38219E #77219E
triadic
#38219E #9E3821 #219E38
tetradic
#38219E #9E2149 #879E21 #219E77
square
#38219E #9E2149 #879E21 #219E77
split-complementary
#38219E #9E7721 #499E21
monochromatic
#140C39 #26166B #38219E #4A2CD1 #745CDD

Accessibility & contrast

On white

11.17
#38219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#38219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38219E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38219E#FFFFFF#000000##FFFFFF
##38219E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38219e;
/* rgb */ color: rgb(56, 33, 158);
/* oklch */ color: oklch(37.3% 0.186 280.8);
Tailwind
colors: {
  custom: {
    50: '#7d60bc',
    500: '#38219e',
    950: '#000000',
  },
}
SCSS
$custom: #38219e;
$custom-light: #7d60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38219e",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 251.04,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37335,
    "c": 0.18633,
    "h": 280.8
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#38219E
secondary
#AEC159
accent
#E83FC9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38219E

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

Preview Lab → · Contrast checker → · Palette generator →

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