#2F1642#2F1642

#2F1642 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.082 H 307.9°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1642
RGBrgb(47, 22, 66)
HSLhsl(274, 50%, 17%)
HSVhsv(274, 67%, 26%)
CMYKcmyk(28.8%, 66.7%, 0%, 74.1%)
CIE-LABlab(13.06, 22.31, -23.06)
CIE-LCHlch(13.06, 32.08, 314.05°)
OKLaboklab(26% 0.0506 -0.065)
OKLCHoklch(26% 0.082 307.9)
XYZxyz(2.4424, 1.5715, 5.3279)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1642 #294216
analogous
#191642 #2F1642 #42163F
triadic
#2F1642 #422F16 #16422F
tetradic
#2F1642 #421916 #294216 #163F42
square
#2F1642 #421916 #294216 #163F42
split-complementary
#2F1642 #3F4216 #164219
monochromatic
#100817 #100817 #2F1642 #502570 #70359E

Accessibility & contrast

On white

15.98
#2F1642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1642
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1642#FFFFFF#000000##FFFFFF
##2F16421.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052143
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#2C1E29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1642;
/* rgb */ color: rgb(47, 22, 66);
/* oklch */ color: oklch(26.0% 0.082 307.9);
Tailwind
colors: {
  custom: {
    50: '#695477',
    500: '#2f1642',
    950: '#000000',
  },
}
SCSS
$custom: #2f1642;
$custom-light: #695477;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1642",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 274.091,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26,
    "c": 0.08232,
    "h": 307.9
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2F1642
secondary
#56793A
accent
#DA4E8A
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1642

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

Preview Lab → · Contrast checker → · Palette generator →

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