#38207E#38207E

#38207E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.148 H 287.4°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#38207E
RGBrgb(56, 32, 126)
HSLhsl(255, 59%, 31%)
HSVhsv(255, 75%, 49%)
CMYKcmyk(55.6%, 74.6%, 0%, 50.6%)
CIE-LABlab(21.50, 36.45, -49.17)
CIE-LCHlch(21.50, 61.21, 306.55°)
OKLaboklab(33.94% 0.0443 -0.1414)
OKLCHoklch(33.94% 0.148 287.4)
XYZxyz(5.9122, 3.3798, 20.0755)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38207E #667E20
analogous
#20377E #38207E #67207E
triadic
#38207E #7E3820 #207E38
tetradic
#38207E #7E2037 #667E20 #207E67
square
#38207E #7E2037 #667E20 #207E67
split-complementary
#38207E #7E6720 #377E20
monochromatic
#0D071C #22144D #38207E #4E2CAF #6B48D0

Accessibility & contrast

On white

12.53
#38207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38207E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38207E#FFFFFF#000000##FFFFFF
##38207E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#1B394D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38207e;
/* rgb */ color: rgb(56, 32, 126);
/* oklch */ color: oklch(33.9% 0.148 287.4);
Tailwind
colors: {
  custom: {
    50: '#775ea4',
    500: '#38207e',
    950: '#000000',
  },
}
SCSS
$custom: #38207e;
$custom-light: #775ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#38207e",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 255.319,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33939,
    "c": 0.14813,
    "h": 287.4
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#38207E
secondary
#96B149
accent
#E345BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38207E

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

Preview Lab → · Contrast checker → · Palette generator →

#38207E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva