#2F0C47#2F0C47

#2F0C47 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.104 H 307.3°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2F0C47
RGBrgb(47, 12, 71)
HSLhsl(276, 71%, 16%)
HSVhsv(276, 83%, 28%)
CMYKcmyk(33.8%, 83.1%, 0%, 72.2%)
CIE-LABlab(11.43, 29.28, -29.18)
CIE-LCHlch(11.43, 41.34, 315.10°)
OKLaboklab(24.96% 0.0633 -0.0829)
OKLCHoklch(24.96% 0.104 307.3)
XYZxyz(2.4409, 1.3222, 6.0866)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C47 #24470C
analogous
#120C47 #2F0C47 #470C42
triadic
#2F0C47 #472F0C #0C472F
tetradic
#2F0C47 #47120C #24470C #0C4247
square
#2F0C47 #47120C #24470C #0C4247
split-complementary
#2F0C47 #42470C #0C4712
monochromatic
#11041A #11041A #2F0C47 #52157B #741EB0

Accessibility & contrast

On white

16.61
#2F0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C47
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C47#FFFFFF#000000##FFFFFF
##2F0C471.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2B1A29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0c47;
/* rgb */ color: rgb(47, 12, 71);
/* oklch */ color: oklch(25.0% 0.104 307.3);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#2f0c47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c47;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c47",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 275.593,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2496,
    "c": 0.10427,
    "h": 307.3
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#2F0C47
secondary
#4F832C
accent
#EE3A83
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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