#2F0947#2F0947

#2F0947 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.108 H 307.9°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#2F0947
RGBrgb(47, 9, 71)
HSLhsl(277, 78%, 16%)
HSVhsv(277, 87%, 28%)
CMYKcmyk(33.8%, 87.3%, 0%, 72.2%)
CIE-LABlab(10.95, 30.65, -29.95)
CIE-LCHlch(10.95, 42.85, 315.66°)
OKLaboklab(24.63% 0.0664 -0.0851)
OKLCHoklch(24.63% 0.108 307.9)
XYZxyz(2.4071, 1.2547, 6.0754)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0947 #214709
analogous
#100947 #2F0947 #470940
triadic
#2F0947 #472F09 #09472F
tetradic
#2F0947 #471009 #214709 #094047
square
#2F0947 #471009 #214709 #094047
split-complementary
#2F0947 #404709 #094710
monochromatic
#12031B #12031B #2F0947 #53107D #7717B4

Accessibility & contrast

On white

16.79
#2F0947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0947
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0947#FFFFFF#000000##FFFFFF
##2F09471.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#2B1928
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0947;
/* rgb */ color: rgb(47, 9, 71);
/* oklch */ color: oklch(24.6% 0.108 307.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d7b',
    500: '#2f0947',
    950: '#000000',
  },
}
SCSS
$custom: #2f0947;
$custom-light: #6b4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0947",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 71
  },
  "hsl": {
    "h": 276.774,
    "s": 77.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24626,
    "c": 0.10796,
    "h": 307.9
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#2F0947
secondary
#4B8427
accent
#F4347E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0947

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

Preview Lab → · Contrast checker → · Palette generator →

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