#2F0A47#2F0A47

#2F0A47 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.107 H 307.7°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2F0A47
RGBrgb(47, 10, 71)
HSLhsl(276, 75%, 16%)
HSVhsv(276, 86%, 28%)
CMYKcmyk(33.8%, 85.9%, 0%, 72.2%)
CIE-LABlab(11.11, 30.20, -29.70)
CIE-LCHlch(11.11, 42.36, 315.48°)
OKLaboklab(24.73% 0.0654 -0.0844)
OKLCHoklch(24.73% 0.107 307.7)
XYZxyz(2.4179, 1.2764, 6.0790)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A47 #22470A
analogous
#100A47 #2F0A47 #470A40
triadic
#2F0A47 #472F0A #0A472F
tetradic
#2F0A47 #47100A #22470A #0A4047
square
#2F0A47 #47100A #22470A #0A4047
split-complementary
#2F0A47 #40470A #0A4710
monochromatic
#12041B #12041B #2F0A47 #53127D #7619B2

Accessibility & contrast

On white

16.73
#2F0A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0A47
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A47#FFFFFF#000000##FFFFFF
##2F0A471.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0a47;
/* rgb */ color: rgb(47, 10, 71);
/* oklch */ color: oklch(24.7% 0.107 307.7);
Tailwind
colors: {
  custom: {
    50: '#6b4e7b',
    500: '#2f0a47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a47;
$custom-light: #6b4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a47",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 276.393,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24734,
    "c": 0.10675,
    "h": 307.7
  },
  "luminance": 0.01276
}

Semantic roles & 50–950 ramp

primary
#2F0A47
secondary
#4D8429
accent
#F23680
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0A47

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

Preview Lab → · Contrast checker → · Palette generator →

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