#39218B#39218B

#39218B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.163 H 284.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#39218B
RGBrgb(57, 33, 139)
HSLhsl(254, 62%, 34%)
HSVhsv(254, 76%, 55%)
CMYKcmyk(59%, 76.3%, 0%, 45.5%)
CIE-LABlab(23.07, 40.07, -54.77)
CIE-LCHlch(23.07, 67.86, 306.19°)
OKLaboklab(35.46% 0.0418 -0.1577)
OKLCHoklch(35.46% 0.163 284.8)
XYZxyz(6.8900, 3.8212, 24.7956)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39218B #738B21
analogous
#213E8B #39218B #6E218B
triadic
#39218B #8B3921 #218B39
tetradic
#39218B #8B213E #738B21 #218B6E
square
#39218B #8B213E #738B21 #218B6E
split-complementary
#39218B #8B6E21 #3E8B21
monochromatic
#100A28 #25155A #39218B #4D2DBC #6F51D6

Accessibility & contrast

On white

11.90
#39218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#39218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39218B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39218B#FFFFFF#000000##FFFFFF
##39218B1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#0D3F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #39218b;
/* rgb */ color: rgb(57, 33, 139);
/* oklch */ color: oklch(35.5% 0.163 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fae',
    500: '#39218b',
    950: '#000000',
  },
}
SCSS
$custom: #39218b;
$custom-light: #7a5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#39218b",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 253.585,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35458,
    "c": 0.16318,
    "h": 284.8
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#39218B
secondary
#A1B94F
accent
#E543C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #39218B

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

Preview Lab → · Contrast checker → · Palette generator →

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