#38209B#38209B

#38209B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.184 H 281.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#38209B
RGBrgb(56, 32, 155)
HSLhsl(252, 66%, 37%)
HSVhsv(252, 79%, 61%)
CMYKcmyk(63.9%, 79.4%, 0%, 39.2%)
CIE-LABlab(24.45, 45.34, -62.39)
CIE-LCHlch(24.45, 77.13, 306.00°)
OKLaboklab(36.9% 0.0365 -0.18)
OKLCHoklch(36.9% 0.184 281.5)
XYZxyz(8.0619, 4.2397, 31.3975)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38209B #839B20
analogous
#20469B #38209B #76209B
triadic
#38209B #9B3820 #209B38
tetradic
#38209B #9B2046 #839B20 #209B76
square
#38209B #9B2046 #839B20 #209B76
split-complementary
#38209B #9B7620 #469B20
monochromatic
#130B36 #261668 #38209B #4A2ACE #7259DD

Accessibility & contrast

On white

11.36
#38209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#38209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38209B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38209B#FFFFFF#000000##FFFFFF
##38209B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38209b;
/* rgb */ color: rgb(56, 32, 155);
/* oklch */ color: oklch(36.9% 0.184 281.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fba',
    500: '#38209b',
    950: '#000000',
  },
}
SCSS
$custom: #38209b;
$custom-light: #7c5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#38209b",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 251.707,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36896,
    "c": 0.18368,
    "h": 281.5
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#38209B
secondary
#ACC156
accent
#E93FC8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38209B

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

Preview Lab → · Contrast checker → · Palette generator →

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