#2F1E79#2F1E79

#2F1E79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.145 H 283.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1E79
RGBrgb(47, 30, 121)
HSLhsl(251, 60%, 30%)
HSVhsv(251, 75%, 47%)
CMYKcmyk(61.2%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.69, 34.58, -48.99)
CIE-LCHlch(19.69, 59.97, 305.21°)
OKLaboklab(32.28% 0.0332 -0.1411)
OKLCHoklch(32.28% 0.145 283.2)
XYZxyz(5.0867, 2.9130, 18.3797)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E79 #68791E
analogous
#1E3A79 #2F1E79 #5D1E79
triadic
#2F1E79 #792F1E #1E792F
tetradic
#2F1E79 #791E3A #68791E #1E795D
square
#2F1E79 #791E3A #68791E #1E795D
split-complementary
#2F1E79 #795D1E #3A791E
monochromatic
#0A0619 #1C1248 #2F1E79 #422AAA #5C41D0

Accessibility & contrast

On white

13.27
#2F1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E79
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E79#FFFFFF#000000##FFFFFF
##2F1E791.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#023749
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1e79;
/* rgb */ color: rgb(47, 30, 121);
/* oklch */ color: oklch(32.3% 0.145 283.2);
Tailwind
colors: {
  custom: {
    50: '#715ca1',
    500: '#2f1e79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e79;
$custom-light: #715ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e79",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 251.209,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.145,
    "h": 283.2
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#2F1E79
secondary
#99AD46
accent
#E344C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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