#38219B#38219B

#38219B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.183 H 281.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#38219B
RGBrgb(56, 33, 155)
HSLhsl(251, 65%, 37%)
HSVhsv(251, 79%, 61%)
CMYKcmyk(63.9%, 78.7%, 0%, 39.2%)
CIE-LABlab(24.62, 44.84, -62.11)
CIE-LCHlch(24.62, 76.60, 305.83°)
OKLaboklab(37.02% 0.0359 -0.1792)
OKLCHoklch(37.02% 0.183 281.3)
XYZxyz(8.0893, 4.2944, 31.4066)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38219B #849B21
analogous
#21479B #38219B #75219B
triadic
#38219B #9B3821 #219B38
tetradic
#38219B #9B2147 #849B21 #219B75
square
#38219B #9B2147 #849B21 #219B75
split-complementary
#38219B #9B7521 #479B21
monochromatic
#140C36 #261669 #38219B #4A2CCD #735ADC

Accessibility & contrast

On white

11.30
#38219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#38219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38219B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38219B#FFFFFF#000000##FFFFFF
##38219B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38219b;
/* rgb */ color: rgb(56, 33, 155);
/* oklch */ color: oklch(37.0% 0.183 281.3);
Tailwind
colors: {
  custom: {
    50: '#7c60ba',
    500: '#38219b',
    950: '#000000',
  },
}
SCSS
$custom: #38219b;
$custom-light: #7c60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38219b",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 251.311,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37017,
    "c": 0.18276,
    "h": 281.3
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#38219B
secondary
#ACC058
accent
#E840C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38219B

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

Preview Lab → · Contrast checker → · Palette generator →

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