#2F1646#2F1646

#2F1646 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.088 H 305.1°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2F1646
RGBrgb(47, 22, 70)
HSLhsl(271, 52%, 18%)
HSVhsv(271, 69%, 27%)
CMYKcmyk(32.9%, 68.6%, 0%, 72.5%)
CIE-LABlab(13.35, 23.44, -25.37)
CIE-LCHlch(13.35, 34.54, 312.73°)
OKLaboklab(26.31% 0.0505 -0.0718)
OKLCHoklch(26.31% 0.088 305.1)
XYZxyz(2.5644, 1.6204, 5.9708)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1646 #2D4616
analogous
#171646 #2F1646 #461645
triadic
#2F1646 #462F16 #16462F
tetradic
#2F1646 #461716 #2D4616 #164546
square
#2F1646 #461716 #2D4616 #164546
split-complementary
#2F1646 #454616 #164617
monochromatic
#100717 #100717 #2F1646 #4E2575 #6E33A3

Accessibility & contrast

On white

15.86
#2F1646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1646
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1646#FFFFFF#000000##FFFFFF
##2F16461.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012248
Deuteranopia (green-blind)
#0B2245
Tritanopia (blue-blind)
#2B202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1646;
/* rgb */ color: rgb(47, 22, 70);
/* oklch */ color: oklch(26.3% 0.088 305.1);
Tailwind
colors: {
  custom: {
    50: '#6a557a',
    500: '#2f1646',
    950: '#000000',
  },
}
SCSS
$custom: #2f1646;
$custom-light: #6a557a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1646",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 70
  },
  "hsl": {
    "h": 271.25,
    "s": 52.174,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26312,
    "c": 0.08774,
    "h": 305.1
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#2F1646
secondary
#5B7D3A
accent
#DC4C91
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1646

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

Preview Lab → · Contrast checker → · Palette generator →

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