#391858#391858

#391858 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.111 H 304.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#391858
RGBrgb(57, 24, 88)
HSLhsl(271, 57%, 22%)
HSVhsv(271, 73%, 35%)
CMYKcmyk(35.2%, 72.7%, 0%, 65.5%)
CIE-LABlab(16.64, 29.91, -32.31)
CIE-LCHlch(16.64, 44.03, 312.79°)
OKLaboklab(29.45% 0.0618 -0.0918)
OKLCHoklch(29.45% 0.111 304)
XYZxyz(3.7750, 2.2277, 9.4617)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391858 #375818
analogous
#191858 #391858 #581857
triadic
#391858 #583918 #185839
tetradic
#391858 #581918 #375818 #185758
square
#391858 #581918 #375818 #185758
split-complementary
#391858 #575818 #185819
monochromatic
#100718 #1A0B28 #391858 #582588 #7732B8

Accessibility & contrast

On white

14.53
#391858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#391858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391858
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391858#FFFFFF#000000##FFFFFF
##3918581.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#022957
Tritanopia (blue-blind)
#332635
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #391858;
/* rgb */ color: rgb(57, 24, 88);
/* oklch */ color: oklch(29.4% 0.111 304.0);
Tailwind
colors: {
  custom: {
    50: '#735788',
    500: '#391858',
    950: '#000000',
  },
}
SCSS
$custom: #391858;
$custom-light: #735788;
$custom-dark: #000000;
JSON
{
  "hex": "#391858",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 270.938,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2945,
    "c": 0.11067,
    "h": 304
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#391858
secondary
#658F3D
accent
#E04792
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391858

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

Preview Lab → · Contrast checker → · Palette generator →

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