#391255#391255

#391255 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.116 H 307.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#391255
RGBrgb(57, 18, 85)
HSLhsl(275, 65%, 20%)
HSVhsv(275, 79%, 33%)
CMYKcmyk(32.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(15.27, 32.25, -32.51)
CIE-LCHlch(15.27, 45.79, 314.77°)
OKLaboklab(28.39% 0.0695 -0.0923)
OKLCHoklch(28.39% 0.116 307)
XYZxyz(3.5430, 1.9584, 8.7839)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391255 #2E5512
analogous
#171255 #391255 #551250
triadic
#391255 #553912 #125539
tetradic
#391255 #551712 #2E5512 #125055
square
#391255 #551712 #2E5512 #125055
split-complementary
#391255 #505512 #125517
monochromatic
#110519 #170722 #391255 #5B1D88 #7D27BA

Accessibility & contrast

On white

15.09
#391255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#391255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391255
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391255#FFFFFF#000000##FFFFFF
##3912551.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#342232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391255;
/* rgb */ color: rgb(57, 18, 85);
/* oklch */ color: oklch(28.4% 0.116 307.0);
Tailwind
colors: {
  custom: {
    50: '#735485',
    500: '#391255',
    950: '#000000',
  },
}
SCSS
$custom: #391255;
$custom-light: #735485;
$custom-dark: #000000;
JSON
{
  "hex": "#391255",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 274.925,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28393,
    "c": 0.11556,
    "h": 307
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#391255
secondary
#5A8E35
accent
#E84086
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391255

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

Preview Lab → · Contrast checker → · Palette generator →

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