#2F1F79#2F1F79

#2F1F79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.144 H 283.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1F79
RGBrgb(47, 31, 121)
HSLhsl(251, 59%, 30%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(61.2%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.90, 33.99, -48.65)
CIE-LCHlch(19.90, 59.35, 304.94°)
OKLaboklab(32.43% 0.0324 -0.1401)
OKLCHoklch(32.43% 0.144 283)
XYZxyz(5.1124, 2.9645, 18.3883)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F79 #69791F
analogous
#1F3C79 #2F1F79 #5C1F79
triadic
#2F1F79 #792F1F #1F792F
tetradic
#2F1F79 #791F3C #69791F #1F795C
square
#2F1F79 #791F3C #69791F #1F795C
split-complementary
#2F1F79 #795C1F #3C791F
monochromatic
#090618 #1C1348 #2F1F79 #422BAA #5C43CF

Accessibility & contrast

On white

13.18
#2F1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F79
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F79#FFFFFF#000000##FFFFFF
##2F1F791.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#01374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1f79;
/* rgb */ color: rgb(47, 31, 121);
/* oklch */ color: oklch(32.4% 0.144 283.0);
Tailwind
colors: {
  custom: {
    50: '#715ca1',
    500: '#2f1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f79;
$custom-light: #715ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f79",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 250.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32431,
    "c": 0.14384,
    "h": 283
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#2F1F79
secondary
#9AAC47
accent
#E245C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F1F79

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

Preview Lab → · Contrast checker → · Palette generator →

#2F1F79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva