#2F0946#2F0946

#2F0946 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.5% C 0.107 H 308.6°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2F0946
RGBrgb(47, 9, 70)
HSLhsl(277, 77%, 15%)
HSVhsv(277, 87%, 27%)
CMYKcmyk(32.9%, 87.1%, 0%, 72.5%)
CIE-LABlab(10.86, 30.39, -29.40)
CIE-LCHlch(10.86, 42.29, 315.95°)
OKLaboklab(24.53% 0.0667 -0.0835)
OKLCHoklch(24.53% 0.107 308.6)
XYZxyz(2.3752, 1.2419, 5.9078)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0946 #204609
analogous
#100946 #2F0946 #46093E
triadic
#2F0946 #462F09 #09462F
tetradic
#2F0946 #461009 #204609 #093E46
square
#2F0946 #461009 #204609 #093E46
split-complementary
#2F0946 #3E4609 #094610
monochromatic
#12031B #12031B #2F0946 #53107C #7817B2

Accessibility & contrast

On white

16.82
#2F0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0946
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0946#FFFFFF#000000##FFFFFF
##2F09461.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#2B1827
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0946;
/* rgb */ color: rgb(47, 9, 70);
/* oklch */ color: oklch(24.5% 0.107 308.6);
Tailwind
colors: {
  custom: {
    50: '#6b4d7a',
    500: '#2f0946',
    950: '#000000',
  },
}
SCSS
$custom: #2f0946;
$custom-light: #6b4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0946",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 277.377,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24533,
    "c": 0.10685,
    "h": 308.6
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#2F0946
secondary
#4A8427
accent
#F4347C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0946

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

Preview Lab → · Contrast checker → · Palette generator →

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