#38208D#38208D

#38208D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.167 H 284.0°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#38208D
RGBrgb(56, 32, 141)
HSLhsl(253, 63%, 34%)
HSVhsv(253, 77%, 55%)
CMYKcmyk(60.3%, 77.3%, 0%, 44.7%)
CIE-LABlab(22.99, 41.07, -56.16)
CIE-LCHlch(22.99, 69.58, 306.18°)
OKLaboklab(35.44% 0.0405 -0.1618)
OKLCHoklch(35.44% 0.167 284)
XYZxyz(6.9536, 3.7964, 25.5605)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38208D #758D20
analogous
#203F8D #38208D #6F208D
triadic
#38208D #8D3820 #208D38
tetradic
#38208D #8D203F #758D20 #208D6F
square
#38208D #8D203F #758D20 #208D6F
split-complementary
#38208D #8D6F20 #3F8D20
monochromatic
#100929 #24155B #38208D #4C2BBF #6E50D7

Accessibility & contrast

On white

11.94
#38208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#38208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38208D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38208D#FFFFFF#000000##FFFFFF
##38208D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#033F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38208d;
/* rgb */ color: rgb(56, 32, 141);
/* oklch */ color: oklch(35.4% 0.167 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a5faf',
    500: '#38208d',
    950: '#000000',
  },
}
SCSS
$custom: #38208d;
$custom-light: #7a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#38208d",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 253.211,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35435,
    "c": 0.16681,
    "h": 284
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#38208D
secondary
#A3BA4E
accent
#E642C2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38208D

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

Preview Lab → · Contrast checker → · Palette generator →

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