#2F1C79#2F1C79

#2F1C79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.147 H 283.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2F1C79
RGBrgb(47, 28, 121)
HSLhsl(252, 62%, 29%)
HSVhsv(252, 77%, 47%)
CMYKcmyk(61.2%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.29, 35.72, -49.66)
CIE-LCHlch(19.29, 61.17, 305.73°)
OKLaboklab(32% 0.0348 -0.1431)
OKLCHoklch(32% 0.147 283.7)
XYZxyz(5.0377, 2.8150, 18.3633)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C79 #66791C
analogous
#1C3879 #2F1C79 #5E1C79
triadic
#2F1C79 #792F1C #1C792F
tetradic
#2F1C79 #791C38 #66791C #1C795E
square
#2F1C79 #791C38 #66791C #1C795E
split-complementary
#2F1C79 #795E1C #38791C
monochromatic
#0A0619 #1C1047 #2F1C79 #4228AB #5C3DD2

Accessibility & contrast

On white

13.44
#2F1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C79
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C79#FFFFFF#000000##FFFFFF
##2F1C791.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.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: #2f1c79;
/* rgb */ color: rgb(47, 28, 121);
/* oklch */ color: oklch(32.0% 0.147 283.7);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2f1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c79;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c79",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 252.258,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31996,
    "c": 0.14726,
    "h": 283.7
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#2F1C79
secondary
#98AD44
accent
#E542C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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