#391852#391852

#391852 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.103 H 307.3°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#391852
RGBrgb(57, 24, 82)
HSLhsl(274, 55%, 21%)
HSVhsv(274, 71%, 32%)
CMYKcmyk(30.5%, 70.7%, 0%, 67.8%)
CIE-LABlab(16.17, 28.27, -29.02)
CIE-LCHlch(16.17, 40.52, 314.25°)
OKLaboklab(28.96% 0.0625 -0.0821)
OKLCHoklch(28.96% 0.103 307.3)
XYZxyz(3.5366, 2.1324, 8.2063)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391852 #315218
analogous
#1C1852 #391852 #52184E
triadic
#391852 #523918 #185239
tetradic
#391852 #521C18 #315218 #184E52
square
#391852 #521C18 #315218 #184E52
split-complementary
#391852 #4E5218 #18521C
monochromatic
#100718 #180A23 #391852 #5A2681 #7B34B1

Accessibility & contrast

On white

14.72
#391852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#391852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391852
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391852#FFFFFF#000000##FFFFFF
##3918521.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#0C2851
Tritanopia (blue-blind)
#352432
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #391852;
/* rgb */ color: rgb(57, 24, 82);
/* oklch */ color: oklch(29.0% 0.103 307.3);
Tailwind
colors: {
  custom: {
    50: '#725783',
    500: '#391852',
    950: '#000000',
  },
}
SCSS
$custom: #391852;
$custom-light: #725783;
$custom-dark: #000000;
JSON
{
  "hex": "#391852",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 274.138,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2896,
    "c": 0.10318,
    "h": 307.3
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#391852
secondary
#5E893D
accent
#DE4A8A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #391852

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

Preview Lab → · Contrast checker → · Palette generator →

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