#2F1B79#2F1B79

#2F1B79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.148 H 283.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1B79
RGBrgb(47, 27, 121)
HSLhsl(253, 64%, 29%)
HSVhsv(253, 78%, 47%)
CMYKcmyk(61.2%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.09, 36.27, -49.98)
CIE-LCHlch(19.09, 61.76, 305.97°)
OKLaboklab(31.86% 0.0356 -0.144)
OKLCHoklch(31.86% 0.148 283.9)
XYZxyz(5.0144, 2.7684, 18.3556)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B79 #65791B
analogous
#1B3679 #2F1B79 #5E1B79
triadic
#2F1B79 #792F1B #1B792F
tetradic
#2F1B79 #791B36 #65791B #1B795E
square
#2F1B79 #791B36 #65791B #1B795E
split-complementary
#2F1B79 #795E1B #36791B
monochromatic
#0A0619 #1C1047 #2F1B79 #4226AB #5B3BD3

Accessibility & contrast

On white

13.52
#2F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B79
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B79#FFFFFF#000000##FFFFFF
##2F1B791.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#023549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1b79;
/* rgb */ color: rgb(47, 27, 121);
/* oklch */ color: oklch(31.9% 0.148 283.9);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2f1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b79;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b79",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 252.766,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31858,
    "c": 0.14835,
    "h": 283.9
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#2F1B79
secondary
#97AD43
accent
#E741C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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