#38208B#38208B

#38208B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.164 H 284.4°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#38208B
RGBrgb(56, 32, 139)
HSLhsl(253, 63%, 34%)
HSVhsv(253, 77%, 55%)
CMYKcmyk(59.7%, 77%, 0%, 45.5%)
CIE-LABlab(22.78, 40.46, -55.25)
CIE-LCHlch(22.78, 68.48, 306.22°)
OKLaboklab(35.23% 0.041 -0.1592)
OKLCHoklch(35.23% 0.164 284.4)
XYZxyz(6.8062, 3.7374, 24.7838)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38208B #738B20
analogous
#203D8B #38208B #6D208B
triadic
#38208B #8B3820 #208B38
tetradic
#38208B #8B203D #738B20 #208B6D
square
#38208B #8B203D #738B20 #208B6D
split-complementary
#38208B #8B6D20 #3D8B20
monochromatic
#100928 #241559 #38208B #4C2BBD #6D4FD6

Accessibility & contrast

On white

12.02
#38208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#38208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38208B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38208B#FFFFFF#000000##FFFFFF
##38208B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#083E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #38208b;
/* rgb */ color: rgb(56, 32, 139);
/* oklch */ color: oklch(35.2% 0.164 284.4);
Tailwind
colors: {
  custom: {
    50: '#795fae',
    500: '#38208b',
    950: '#000000',
  },
}
SCSS
$custom: #38208b;
$custom-light: #795fae;
$custom-dark: #000000;
JSON
{
  "hex": "#38208b",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 253.458,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35231,
    "c": 0.16435,
    "h": 284.4
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#38208B
secondary
#A1BA4D
accent
#E642C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38208B

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

Preview Lab → · Contrast checker → · Palette generator →

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