#2F1042#2F1042

#2F1042 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.093 H 309.8°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2F1042
RGBrgb(47, 16, 66)
HSLhsl(277, 61%, 16%)
HSVhsv(277, 76%, 26%)
CMYKcmyk(28.8%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.74, 25.88, -25.16)
CIE-LCHlch(11.74, 36.10, 315.81°)
OKLaboklab(25.05% 0.0592 -0.0711)
OKLCHoklch(25.05% 0.093 309.8)
XYZxyz(2.3408, 1.3683, 5.2940)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1042 #234210
analogous
#161042 #2F1042 #42103C
triadic
#2F1042 #422F10 #10422F
tetradic
#2F1042 #421610 #234210 #103C42
square
#2F1042 #421610 #234210 #103C42
split-complementary
#2F1042 #3C4210 #104216
monochromatic
#120619 #120619 #2F1042 #521C73 #7528A5

Accessibility & contrast

On white

16.49
#2F1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1042
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1042#FFFFFF#000000##FFFFFF
##2F10421.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#081F41
Tritanopia (blue-blind)
#2C1A27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1042;
/* rgb */ color: rgb(47, 16, 66);
/* oklch */ color: oklch(25.1% 0.093 309.8);
Tailwind
colors: {
  custom: {
    50: '#6a5177',
    500: '#2f1042',
    950: '#000000',
  },
}
SCSS
$custom: #2f1042;
$custom-light: #6a5177;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1042",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 277.2,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25051,
    "c": 0.09253,
    "h": 309.8
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#2F1042
secondary
#4E7C32
accent
#E44481
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F1042

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

Preview Lab → · Contrast checker → · Palette generator →

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