#2F0346#2F0346

#2F0346 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.115 H 309.7°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#2F0346
RGBrgb(47, 3, 70)
HSLhsl(279, 92%, 14%)
HSVhsv(279, 96%, 27%)
CMYKcmyk(32.9%, 95.7%, 0%, 72.5%)
CIE-LABlab(9.89, 33.24, -30.99)
CIE-LCHlch(9.89, 45.44, 317.01°)
OKLaboklab(23.86% 0.0732 -0.0881)
OKLCHoklch(23.86% 0.115 309.7)
XYZxyz(2.3101, 1.1117, 5.8860)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0346 #1A4603
analogous
#0E0346 #2F0346 #46033C
triadic
#2F0346 #462F03 #03462F
tetradic
#2F0346 #460E03 #1A4603 #033C46
square
#2F0346 #460E03 #1A4603 #033C46
split-complementary
#2F0346 #3C4603 #03460E
monochromatic
#14011D #14011D #2F0346 #560681 #7E08BB

Accessibility & contrast

On white

17.18
#2F0346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0346
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0346#FFFFFF#000000##FFFFFF
##2F03461.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#2C1526
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0346;
/* rgb */ color: rgb(47, 3, 70);
/* oklch */ color: oklch(23.9% 0.115 309.7);
Tailwind
colors: {
  custom: {
    50: '#6b4a7a',
    500: '#2f0346',
    950: '#000000',
  },
}
SCSS
$custom: #2f0346;
$custom-light: #6b4a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0346",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 279.403,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23856,
    "c": 0.11456,
    "h": 309.7
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#2F0346
secondary
#42871D
accent
#FF2972
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0346

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

Preview Lab → · Contrast checker → · Palette generator →

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