#391272#391272

#391272 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.149 H 294.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#391272
RGBrgb(57, 18, 114)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(50%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.00, 40.06, -47.24)
CIE-LCHlch(18.00, 61.94, 310.30°)
OKLaboklab(31.15% 0.0611 -0.1356)
OKLCHoklch(31.15% 0.149 294.3)
XYZxyz(4.9401, 2.5172, 16.1419)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391272 #4B7212
analogous
#121B72 #391272 #691272
triadic
#391272 #723912 #127239
tetradic
#391272 #72121B #4B7212 #127269
square
#391272 #72121B #4B7212 #127269
split-complementary
#391272 #726912 #1B7212
monochromatic
#0D041A #1F0A3D #391272 #531AA7 #6E23DC

Accessibility & contrast

On white

13.97
#391272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#391272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391272
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391272#FFFFFF#000000##FFFFFF
##3912721.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#282E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391272;
/* rgb */ color: rgb(57, 18, 114);
/* oklch */ color: oklch(31.1% 0.149 294.3);
Tailwind
colors: {
  custom: {
    50: '#76569b',
    500: '#391272',
    950: '#000000',
  },
}
SCSS
$custom: #391272;
$custom-light: #76569b;
$custom-dark: #000000;
JSON
{
  "hex": "#391272",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 264.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31145,
    "c": 0.14869,
    "h": 294.3
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#391272
secondary
#7BA937
accent
#EF38A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391272

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

Preview Lab → · Contrast checker → · Palette generator →

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