#38209D#38209D

#38209D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.186 H 281.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#38209D
RGBrgb(56, 32, 157)
HSLhsl(252, 66%, 37%)
HSVhsv(252, 80%, 62%)
CMYKcmyk(64.3%, 79.6%, 0%, 38.4%)
CIE-LABlab(24.66, 45.94, -63.26)
CIE-LCHlch(24.66, 78.19, 305.99°)
OKLaboklab(37.11% 0.0359 -0.1826)
OKLCHoklch(37.11% 0.186 281.1)
XYZxyz(8.2313, 4.3075, 32.2894)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38209D #859D20
analogous
#20479D #38209D #77209D
triadic
#38209D #9D3820 #209D38
tetradic
#38209D #9D2047 #859D20 #209D77
square
#38209D #9D2047 #859D20 #209D77
split-complementary
#38209D #9D7720 #479D20
monochromatic
#140B37 #26166A #38209D #4A2AD0 #735ADD

Accessibility & contrast

On white

11.28
#38209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#38209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38209D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38209D#FFFFFF#000000##FFFFFF
##38209D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38209d;
/* rgb */ color: rgb(56, 32, 157);
/* oklch */ color: oklch(37.1% 0.186 281.1);
Tailwind
colors: {
  custom: {
    50: '#7d60bb',
    500: '#38209d',
    950: '#000000',
  },
}
SCSS
$custom: #38209d;
$custom-light: #7d60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#38209d",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 251.52,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.18606,
    "h": 281.1
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38209D

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

Preview Lab → · Contrast checker → · Palette generator →

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