#392281#392281

#392281 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.150 H 286.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#392281
RGBrgb(57, 34, 129)
HSLhsl(255, 58%, 32%)
HSVhsv(255, 74%, 51%)
CMYKcmyk(55.8%, 73.6%, 0%, 49.4%)
CIE-LABlab(22.30, 36.42, -49.76)
CIE-LCHlch(22.30, 61.67, 306.20°)
OKLaboklab(34.61% 0.0433 -0.1431)
OKLCHoklch(34.61% 0.15 286.8)
XYZxyz(6.2206, 3.5986, 21.1314)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392281 #6A8122
analogous
#223B81 #392281 #692281
triadic
#392281 #813922 #228139
tetradic
#392281 #81223B #6A8122 #228169
square
#392281 #81223B #6A8122 #228169
split-complementary
#392281 #816922 #3B8122
monochromatic
#0E0820 #241551 #392281 #4E2FB1 #6D4DD0

Accessibility & contrast

On white

12.21
#392281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#392281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392281
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392281#FFFFFF#000000##FFFFFF
##3922811.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#1B3B4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #392281;
/* rgb */ color: rgb(57, 34, 129);
/* oklch */ color: oklch(34.6% 0.150 286.8);
Tailwind
colors: {
  custom: {
    50: '#785fa6',
    500: '#392281',
    950: '#000000',
  },
}
SCSS
$custom: #392281;
$custom-light: #785fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#392281",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 254.526,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34614,
    "c": 0.14951,
    "h": 286.8
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#392281
secondary
#9AB34B
accent
#E146BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #392281

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

Preview Lab → · Contrast checker → · Palette generator →

#392281 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva