#39237C#39237C

#39237C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.142 H 287.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#39237C
RGBrgb(57, 35, 124)
HSLhsl(255, 56%, 31%)
HSVhsv(255, 72%, 49%)
CMYKcmyk(54%, 71.8%, 0%, 51.4%)
CIE-LABlab(22.04, 34.29, -47.02)
CIE-LCHlch(22.04, 58.19, 306.10°)
OKLaboklab(34.29% 0.0434 -0.135)
OKLCHoklch(34.29% 0.142 287.8)
XYZxyz(5.9254, 3.5269, 19.4334)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39237C #667C23
analogous
#23397C #39237C #65237C
triadic
#39237C #7C3923 #237C39
tetradic
#39237C #7C2339 #667C23 #237C65
square
#39237C #7C2339 #667C23 #237C65
split-complementary
#39237C #7C6523 #397C23
monochromatic
#0D081D #23164C #39237C #4F30AC #6C4DCD

Accessibility & contrast

On white

12.31
#39237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#39237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39237C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39237C#FFFFFF#000000##FFFFFF
##39237C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#1F3A4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #39237c;
/* rgb */ color: rgb(57, 35, 124);
/* oklch */ color: oklch(34.3% 0.142 287.8);
Tailwind
colors: {
  custom: {
    50: '#7760a3',
    500: '#39237c',
    950: '#000000',
  },
}
SCSS
$custom: #39237c;
$custom-light: #7760a3;
$custom-dark: #000000;
JSON
{
  "hex": "#39237c",
  "rgb": {
    "r": 57,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 254.831,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.14184,
    "h": 287.8
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#39237C
secondary
#96AF4C
accent
#DF49BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39237C

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

Preview Lab → · Contrast checker → · Palette generator →

#39237C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva