#392278#392278

#392278 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.138 H 289.1°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#392278
RGBrgb(57, 34, 120)
HSLhsl(256, 56%, 30%)
HSVhsv(256, 72%, 47%)
CMYKcmyk(52.5%, 71.7%, 0%, 52.9%)
CIE-LABlab(21.47, 33.62, -45.41)
CIE-LCHlch(21.47, 56.50, 306.52°)
OKLaboklab(33.77% 0.0452 -0.1303)
OKLCHoklch(33.77% 0.138 289.1)
XYZxyz(5.6486, 3.3697, 18.1185)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392278 #617822
analogous
#223678 #392278 #642278
triadic
#392278 #783922 #227839
tetradic
#392278 #782236 #617822 #227864
square
#392278 #782236 #617822 #227864
split-complementary
#392278 #786422 #367822
monochromatic
#0C0719 #221448 #392278 #5030A8 #6C49CB

Accessibility & contrast

On white

12.54
#392278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#392278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392278
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392278#FFFFFF#000000##FFFFFF
##3922781.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#23384A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #392278;
/* rgb */ color: rgb(57, 34, 120);
/* oklch */ color: oklch(33.8% 0.138 289.1);
Tailwind
colors: {
  custom: {
    50: '#765fa0',
    500: '#392278',
    950: '#000000',
  },
}
SCSS
$custom: #392278;
$custom-light: #765fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#392278",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 256.047,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33767,
    "c": 0.1379,
    "h": 289.1
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#392278
secondary
#91AB4B
accent
#DF49B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050F
muted
#7B797E

Preview Lab

Preview with #392278

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

Preview Lab → · Contrast checker → · Palette generator →

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