#38207D#38207D

#38207D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.147 H 287.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#38207D
RGBrgb(56, 32, 125)
HSLhsl(255, 59%, 31%)
HSVhsv(255, 74%, 49%)
CMYKcmyk(55.2%, 74.4%, 0%, 51%)
CIE-LABlab(21.41, 36.14, -48.69)
CIE-LCHlch(21.41, 60.64, 306.59°)
OKLaboklab(33.84% 0.0445 -0.14)
OKLCHoklch(33.84% 0.147 287.6)
XYZxyz(5.8480, 3.3542, 19.7373)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38207D #657D20
analogous
#20367D #38207D #66207D
triadic
#38207D #7D3820 #207D38
tetradic
#38207D #7D2036 #657D20 #207D66
square
#38207D #7D2036 #657D20 #207D66
split-complementary
#38207D #7D6620 #367D20
monochromatic
#0C071C #22144C #38207D #4E2CAE #6B47D0

Accessibility & contrast

On white

12.57
#38207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#38207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38207D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38207D#FFFFFF#000000##FFFFFF
##38207D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#1C394C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38207d;
/* rgb */ color: rgb(56, 32, 125);
/* oklch */ color: oklch(33.8% 0.147 287.6);
Tailwind
colors: {
  custom: {
    50: '#775ea4',
    500: '#38207d',
    950: '#000000',
  },
}
SCSS
$custom: #38207d;
$custom-light: #775ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#38207d",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 255.484,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33843,
    "c": 0.14686,
    "h": 287.6
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#38207D
secondary
#95B049
accent
#E245BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38207D

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

Preview Lab → · Contrast checker → · Palette generator →

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