#2F0C46#2F0C46

#2F0C46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.103 H 308.0°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#2F0C46
RGBrgb(47, 12, 70)
HSLhsl(276, 71%, 16%)
HSVhsv(276, 83%, 27%)
CMYKcmyk(32.9%, 82.9%, 0%, 72.5%)
CIE-LABlab(11.34, 29.02, -28.62)
CIE-LCHlch(11.34, 40.76, 315.39°)
OKLaboklab(24.87% 0.0635 -0.0812)
OKLCHoklch(24.87% 0.103 308)
XYZxyz(2.4090, 1.3095, 5.9190)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C46 #23460C
analogous
#120C46 #2F0C46 #460C40
triadic
#2F0C46 #462F0C #0C462F
tetradic
#2F0C46 #46120C #23460C #0C4046
square
#2F0C46 #46120C #23460C #0C4046
split-complementary
#2F0C46 #40460C #0C4612
monochromatic
#12041A #12041A #2F0C46 #52157A #751EAE

Accessibility & contrast

On white

16.64
#2F0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C46
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C46#FFFFFF#000000##FFFFFF
##2F0C461.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#2B1A28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0c46;
/* rgb */ color: rgb(47, 12, 70);
/* oklch */ color: oklch(24.9% 0.103 308.0);
Tailwind
colors: {
  custom: {
    50: '#6b4f7a',
    500: '#2f0c46',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c46;
$custom-light: #6b4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c46",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 276.207,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2487,
    "c": 0.1031,
    "h": 308
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#2F0C46
secondary
#4E822C
accent
#ED3A81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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