#2F1D79#2F1D79

#2F1D79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.146 H 283.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2F1D79
RGBrgb(47, 29, 121)
HSLhsl(252, 61%, 29%)
HSVhsv(252, 76%, 47%)
CMYKcmyk(61.2%, 76%, 0%, 52.5%)
CIE-LABlab(19.49, 35.15, -49.33)
CIE-LCHlch(19.49, 60.57, 305.47°)
OKLaboklab(32.14% 0.034 -0.1421)
OKLCHoklch(32.14% 0.146 283.5)
XYZxyz(5.0618, 2.8632, 18.3714)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D79 #67791D
analogous
#1D3979 #2F1D79 #5D1D79
triadic
#2F1D79 #792F1D #1D792F
tetradic
#2F1D79 #791D39 #67791D #1D795D
square
#2F1D79 #791D39 #67791D #1D795D
split-complementary
#2F1D79 #795D1D #39791D
monochromatic
#0A0619 #1C1148 #2F1D79 #4229AA #5C3FD1

Accessibility & contrast

On white

13.35
#2F1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D79
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D79#FFFFFF#000000##FFFFFF
##2F1D791.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#023649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1d79;
/* rgb */ color: rgb(47, 29, 121);
/* oklch */ color: oklch(32.1% 0.146 283.5);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2f1d79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d79;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d79",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 251.739,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.14614,
    "h": 283.5
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#2F1D79
secondary
#98AD45
accent
#E443C5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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