#391258#391258

#391258 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.7% C 0.119 H 305.4°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#391258
RGBrgb(57, 18, 88)
HSLhsl(273, 66%, 21%)
HSVhsv(273, 80%, 35%)
CMYKcmyk(35.2%, 79.5%, 0%, 65.5%)
CIE-LABlab(15.52, 33.03, -34.12)
CIE-LCHlch(15.52, 47.49, 314.07°)
OKLaboklab(28.66% 0.0689 -0.097)
OKLCHoklch(28.66% 0.119 305.4)
XYZxyz(3.6647, 2.0071, 9.4250)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391258 #315812
analogous
#161258 #391258 #581254
triadic
#391258 #583912 #125839
tetradic
#391258 #581612 #315812 #125458
square
#391258 #581612 #315812 #125458
split-complementary
#391258 #545812 #125816
monochromatic
#100519 #180825 #391258 #5A1C8B #7B27BE

Accessibility & contrast

On white

14.99
#391258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#391258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391258
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391258#FFFFFF#000000##FFFFFF
##3912581.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#332334
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #391258;
/* rgb */ color: rgb(57, 18, 88);
/* oklch */ color: oklch(28.7% 0.119 305.4);
Tailwind
colors: {
  custom: {
    50: '#735488',
    500: '#391258',
    950: '#000000',
  },
}
SCSS
$custom: #391258;
$custom-light: #735488;
$custom-dark: #000000;
JSON
{
  "hex": "#391258",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 273.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28656,
    "c": 0.119,
    "h": 305.4
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#391258
secondary
#5E9135
accent
#E93F8A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391258

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

Preview Lab → · Contrast checker → · Palette generator →

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