#2F1640#2F1640

#2F1640 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.080 H 309.4°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2F1640
RGBrgb(47, 22, 64)
HSLhsl(276, 49%, 17%)
HSVhsv(276, 66%, 25%)
CMYKcmyk(26.6%, 65.6%, 0%, 74.9%)
CIE-LABlab(12.91, 21.75, -21.88)
CIE-LCHlch(12.91, 30.85, 314.83°)
OKLaboklab(25.85% 0.0505 -0.0615)
OKLCHoklch(25.85% 0.08 309.4)
XYZxyz(2.3844, 1.5484, 5.0227)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1640 #274016
analogous
#1A1640 #2F1640 #40163C
triadic
#2F1640 #402F16 #16402F
tetradic
#2F1640 #401A16 #274016 #163C40
square
#2F1640 #401A16 #274016 #163C40
split-complementary
#2F1640 #3C4016 #16401A
monochromatic
#110817 #110817 #2F1640 #50266E #72359B

Accessibility & contrast

On white

16.04
#2F1640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1640
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1640#FFFFFF#000000##FFFFFF
##2F16401.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072041
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#2D1E28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1640;
/* rgb */ color: rgb(47, 22, 64);
/* oklch */ color: oklch(25.8% 0.080 309.4);
Tailwind
colors: {
  custom: {
    50: '#695475',
    500: '#2f1640',
    950: '#000000',
  },
}
SCSS
$custom: #2f1640;
$custom-light: #695475;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1640",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 275.714,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25849,
    "c": 0.07961,
    "h": 309.4
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#2F1640
secondary
#53773B
accent
#D84F87
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1640

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

Preview Lab → · Contrast checker → · Palette generator →

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