#39227B#39227B

#39227B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.142 H 288.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#39227B
RGBrgb(57, 34, 123)
HSLhsl(256, 57%, 31%)
HSVhsv(256, 72%, 48%)
CMYKcmyk(53.7%, 72.4%, 0%, 51.8%)
CIE-LABlab(21.74, 34.56, -46.87)
CIE-LCHlch(21.74, 58.23, 306.40°)
OKLaboklab(34.05% 0.0446 -0.1346)
OKLCHoklch(34.05% 0.142 288.3)
XYZxyz(5.8335, 3.4437, 19.0924)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39227B #647B22
analogous
#22377B #39227B #65227B
triadic
#39227B #7B3922 #227B39
tetradic
#39227B #7B2237 #647B22 #227B65
square
#39227B #7B2237 #647B22 #227B65
split-complementary
#39227B #7B6522 #377B22
monochromatic
#0D071B #23154B #39227B #4F2FAB #6C4ACD

Accessibility & contrast

On white

12.43
#39227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#39227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39227B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39227B#FFFFFF#000000##FFFFFF
##39227B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#20394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39227b;
/* rgb */ color: rgb(57, 34, 123);
/* oklch */ color: oklch(34.0% 0.142 288.3);
Tailwind
colors: {
  custom: {
    50: '#775fa2',
    500: '#39227b',
    950: '#000000',
  },
}
SCSS
$custom: #39227b;
$custom-light: #775fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#39227b",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 255.506,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.1418,
    "h": 288.3
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#39227B
secondary
#94AE4B
accent
#E048B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39227B

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

Preview Lab → · Contrast checker → · Palette generator →

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