#2F1661#2F1661

#2F1661 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.123 H 292.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2F1661
RGBrgb(47, 22, 97)
HSLhsl(260, 63%, 23%)
HSVhsv(260, 77%, 38%)
CMYKcmyk(51.5%, 77.3%, 0%, 62%)
CIE-LABlab(15.70, 31.52, -39.91)
CIE-LCHlch(15.70, 50.86, 308.31°)
OKLaboklab(28.73% 0.0462 -0.1145)
OKLCHoklch(28.73% 0.123 292)
XYZxyz(3.6163, 2.0411, 11.5104)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1661 #486116
analogous
#162261 #2F1661 #541661
triadic
#2F1661 #612F16 #16612F
tetradic
#2F1661 #611622 #486116 #166154
square
#2F1661 #611622 #486116 #166154
split-complementary
#2F1661 #615416 #226116
monochromatic
#0C0619 #170B2F #2F1661 #472193 #5F2DC5

Accessibility & contrast

On white

14.91
#2F1661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1661
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1661#FFFFFF#000000##FFFFFF
##2F16611.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#1F2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1661;
/* rgb */ color: rgb(47, 22, 97);
/* oklch */ color: oklch(28.7% 0.123 292.0);
Tailwind
colors: {
  custom: {
    50: '#6d568f',
    500: '#2f1661',
    950: '#000000',
  },
}
SCSS
$custom: #2f1661;
$custom-light: #6d568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1661",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 260,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28731,
    "c": 0.12346,
    "h": 292
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#2F1661
secondary
#79983B
accent
#E642AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1661

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

Preview Lab → · Contrast checker → · Palette generator →

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