#2F0546#2F0546

#2F0546 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.112 H 309.3°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#2F0546
RGBrgb(47, 5, 70)
HSLhsl(279, 87%, 15%)
HSVhsv(279, 93%, 27%)
CMYKcmyk(32.9%, 92.9%, 0%, 72.5%)
CIE-LABlab(10.22, 32.26, -30.44)
CIE-LCHlch(10.22, 44.36, 316.66°)
OKLaboklab(24.09% 0.071 -0.0865)
OKLCHoklch(24.09% 0.112 309.3)
XYZxyz(2.3318, 1.1551, 5.8933)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0546 #1C4605
analogous
#0E0546 #2F0546 #46053D
triadic
#2F0546 #462F05 #05462F
tetradic
#2F0546 #460E05 #1C4605 #053D46
square
#2F0546 #460E05 #1C4605 #053D46
split-complementary
#2F0546 #3D4605 #05460E
monochromatic
#13021D #13021D #2F0546 #55097F #7C0DB8

Accessibility & contrast

On white

17.06
#2F0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0546
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0546#FFFFFF#000000##FFFFFF
##2F05461.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0546;
/* rgb */ color: rgb(47, 5, 70);
/* oklch */ color: oklch(24.1% 0.112 309.3);
Tailwind
colors: {
  custom: {
    50: '#6b4b7a',
    500: '#2f0546',
    950: '#000000',
  },
}
SCSS
$custom: #2f0546;
$custom-light: #6b4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0546",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 278.769,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24086,
    "c": 0.11191,
    "h": 309.3
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#2F0546
secondary
#458621
accent
#FD2B75
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0546

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

Preview Lab → · Contrast checker → · Palette generator →

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