#2F0E47#2F0E47

#2F0E47 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.102 H 306.9°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2F0E47
RGBrgb(47, 14, 71)
HSLhsl(275, 67%, 17%)
HSVhsv(275, 80%, 28%)
CMYKcmyk(33.8%, 80.3%, 0%, 72.2%)
CIE-LABlab(11.78, 28.29, -28.61)
CIE-LCHlch(11.78, 40.24, 314.68°)
OKLaboklab(25.21% 0.061 -0.0812)
OKLCHoklch(25.21% 0.102 306.9)
XYZxyz(2.4664, 1.3734, 6.0952)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E47 #26470E
analogous
#130E47 #2F0E47 #470E43
triadic
#2F0E47 #472F0E #0E472F
tetradic
#2F0E47 #47130E #26470E #0E4347
square
#2F0E47 #47130E #26470E #0E4347
split-complementary
#2F0E47 #43470E #0E4713
monochromatic
#11051A #11051A #2F0E47 #51187A #7322AD

Accessibility & contrast

On white

16.48
#2F0E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0E47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0E47
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E47#FFFFFF#000000##FFFFFF
##2F0E471.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2B1B29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0e47;
/* rgb */ color: rgb(47, 14, 71);
/* oklch */ color: oklch(25.2% 0.102 306.9);
Tailwind
colors: {
  custom: {
    50: '#6a507b',
    500: '#2f0e47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e47;
$custom-light: #6a507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e47",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 71
  },
  "hsl": {
    "h": 274.737,
    "s": 67.059,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25207,
    "c": 0.10157,
    "h": 306.9
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#2F0E47
secondary
#52822F
accent
#EA3E86
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0E47

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

Preview Lab → · Contrast checker → · Palette generator →

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