#392157#392157

#392157 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.095 H 301.6°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#392157
RGBrgb(57, 33, 87)
HSLhsl(267, 45%, 24%)
HSVhsv(267, 62%, 34%)
CMYKcmyk(34.5%, 62.1%, 0%, 65.9%)
CIE-LABlab(18.57, 24.22, -28.54)
CIE-LCHlch(18.57, 37.43, 310.32°)
OKLaboklab(30.82% 0.0496 -0.0807)
OKLCHoklch(30.82% 0.095 301.6)
XYZxyz(3.9511, 2.6457, 9.3175)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392157 #3F5721
analogous
#212457 #392157 #542157
triadic
#392157 #573921 #215739
tetradic
#392157 #572124 #3F5721 #215754
square
#392157 #572124 #3F5721 #215754
split-complementary
#392157 #575421 #245721
monochromatic
#0F0816 #1C102B #392157 #563283 #7343B0

Accessibility & contrast

On white

13.73
#392157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#392157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392157
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392157#FFFFFF#000000##FFFFFF
##3921571.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092D59
Deuteranopia (green-blind)
#132D56
Tritanopia (blue-blind)
#332C38
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #392157;
/* rgb */ color: rgb(57, 33, 87);
/* oklch */ color: oklch(30.8% 0.095 301.6);
Tailwind
colors: {
  custom: {
    50: '#725d87',
    500: '#392157',
    950: '#000000',
  },
}
SCSS
$custom: #392157;
$custom-light: #725d87;
$custom-dark: #000000;
JSON
{
  "hex": "#392157",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 266.667,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30822,
    "c": 0.09476,
    "h": 301.6
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#392157
secondary
#6E8B49
accent
#D5539B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #392157

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

Preview Lab → · Contrast checker → · Palette generator →

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