#39227F#39227F

#39227F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.147 H 287.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#39227F
RGBrgb(57, 34, 127)
HSLhsl(255, 58%, 32%)
HSVhsv(255, 73%, 50%)
CMYKcmyk(55.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(22.11, 35.80, -48.81)
CIE-LCHlch(22.11, 60.53, 306.26°)
OKLaboklab(34.42% 0.0438 -0.1403)
OKLCHoklch(34.42% 0.147 287.3)
XYZxyz(6.0890, 3.5459, 20.4381)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39227F #687F22
analogous
#223A7F #39227F #68227F
triadic
#39227F #7F3922 #227F39
tetradic
#39227F #7F223A #687F22 #227F68
square
#39227F #7F223A #687F22 #227F68
split-complementary
#39227F #7F6822 #3A7F22
monochromatic
#0E081E #23154F #39227F #4F2FAF #6D4CCF

Accessibility & contrast

On white

12.29
#39227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#39227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39227F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39227F#FFFFFF#000000##FFFFFF
##39227F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#1D3A4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #39227f;
/* rgb */ color: rgb(57, 34, 127);
/* oklch */ color: oklch(34.4% 0.147 287.3);
Tailwind
colors: {
  custom: {
    50: '#775fa5',
    500: '#39227f',
    950: '#000000',
  },
}
SCSS
$custom: #39227f;
$custom-light: #775fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#39227f",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 254.839,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34423,
    "c": 0.14695,
    "h": 287.3
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#39227F
secondary
#98B24B
accent
#E147BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39227F

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

Preview Lab → · Contrast checker → · Palette generator →

#39227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva