#2F0746#2F0746

#2F0746 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.109 H 309.0°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2F0746
RGBrgb(47, 7, 70)
HSLhsl(278, 82%, 15%)
HSVhsv(278, 90%, 27%)
CMYKcmyk(32.9%, 90%, 0%, 72.5%)
CIE-LABlab(10.55, 31.31, -29.91)
CIE-LCHlch(10.55, 43.30, 316.31°)
OKLaboklab(24.31% 0.0688 -0.085)
OKLCHoklch(24.31% 0.109 309)
XYZxyz(2.3535, 1.1985, 5.9005)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0746 #1E4607
analogous
#0F0746 #2F0746 #46073E
triadic
#2F0746 #462F07 #07462F
tetradic
#2F0746 #460F07 #1E4607 #073E46
square
#2F0746 #460F07 #1E4607 #073E46
split-complementary
#2F0746 #3E4607 #07460F
monochromatic
#13031C #13031C #2F0746 #540D7E #7A12B5

Accessibility & contrast

On white

16.94
#2F0746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0746
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0746#FFFFFF#000000##FFFFFF
##2F07461.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#2B1727
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0746;
/* rgb */ color: rgb(47, 7, 70);
/* oklch */ color: oklch(24.3% 0.109 309.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c7a',
    500: '#2f0746',
    950: '#000000',
  },
}
SCSS
$custom: #2f0746;
$custom-light: #6b4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0746",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 278.095,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24312,
    "c": 0.10934,
    "h": 309
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#2F0746
secondary
#478524
accent
#F83079
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0746

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

Preview Lab → · Contrast checker → · Palette generator →

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