#392298#392298

#392298 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.178 H 282.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#392298
RGBrgb(57, 34, 152)
HSLhsl(252, 63%, 36%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(62.5%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.58, 43.53, -60.34)
CIE-LCHlch(24.58, 74.40, 305.81°)
OKLaboklab(36.92% 0.0376 -0.174)
OKLCHoklch(36.92% 0.178 282.2)
XYZxyz(7.9251, 4.2803, 30.1082)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392298 #819822
analogous
#224698 #392298 #742298
triadic
#392298 #983922 #229839
tetradic
#392298 #982246 #819822 #229874
square
#392298 #982246 #819822 #229874
split-complementary
#392298 #987422 #469822
monochromatic
#130C34 #261766 #392298 #4C2DCA #735ADA

Accessibility & contrast

On white

11.31
#392298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#392298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392298
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392298#FFFFFF#000000##FFFFFF
##3922981.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #392298;
/* rgb */ color: rgb(57, 34, 152);
/* oklch */ color: oklch(36.9% 0.178 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c60b7',
    500: '#392298',
    950: '#000000',
  },
}
SCSS
$custom: #392298;
$custom-light: #7c60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#392298",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 251.695,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36915,
    "c": 0.17803,
    "h": 282.2
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#392298
secondary
#AABE57
accent
#E641C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #392298

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

Preview Lab → · Contrast checker → · Palette generator →

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