#391273#391273

#391273 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.150 H 293.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#391273
RGBrgb(57, 18, 115)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(50.4%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.10, 40.34, -47.71)
CIE-LCHlch(18.10, 62.48, 310.21°)
OKLaboklab(31.25% 0.0607 -0.1369)
OKLCHoklch(31.25% 0.15 293.9)
XYZxyz(4.9973, 2.5401, 16.4433)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391273 #4C7312
analogous
#121B73 #391273 #691273
triadic
#391273 #733912 #127339
tetradic
#391273 #73121B #4C7312 #127369
square
#391273 #73121B #4C7312 #127369
split-complementary
#391273 #736912 #1B7312
monochromatic
#0D041A #1F0A3E #391273 #531AA8 #6E23DD

Accessibility & contrast

On white

13.93
#391273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#391273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391273
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391273#FFFFFF#000000##FFFFFF
##3912731.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#272E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391273;
/* rgb */ color: rgb(57, 18, 115);
/* oklch */ color: oklch(31.2% 0.150 293.9);
Tailwind
colors: {
  custom: {
    50: '#77569c',
    500: '#391273',
    950: '#000000',
  },
}
SCSS
$custom: #391273;
$custom-light: #77569c;
$custom-dark: #000000;
JSON
{
  "hex": "#391273",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 264.124,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31248,
    "c": 0.14981,
    "h": 293.9
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#391273
secondary
#7CAA37
accent
#F038A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391273

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

Preview Lab → · Contrast checker → · Palette generator →

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