#2F0E42#2F0E42

#2F0E42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.096 H 310.3°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#2F0E42
RGBrgb(47, 14, 66)
HSLhsl(278, 65%, 16%)
HSVhsv(278, 79%, 26%)
CMYKcmyk(28.8%, 78.8%, 0%, 74.1%)
CIE-LABlab(11.36, 26.96, -25.79)
CIE-LCHlch(11.36, 37.31, 316.28°)
OKLaboklab(24.77% 0.0618 -0.0729)
OKLCHoklch(24.77% 0.096 310.3)
XYZxyz(2.3125, 1.3118, 5.2846)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0E42 #21420E
analogous
#150E42 #2F0E42 #420E3B
triadic
#2F0E42 #422F0E #0E422F
tetradic
#2F0E42 #42150E #21420E #0E3B42
square
#2F0E42 #42150E #21420E #0E3B42
split-complementary
#2F0E42 #3B420E #0E4215
monochromatic
#120519 #120519 #2F0E42 #531974 #7723A7

Accessibility & contrast

On white

16.63
#2F0E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0E42
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0E42#FFFFFF#000000##FFFFFF
##2F0E421.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#2C1926
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0e42;
/* rgb */ color: rgb(47, 14, 66);
/* oklch */ color: oklch(24.8% 0.096 310.3);
Tailwind
colors: {
  custom: {
    50: '#6a5077',
    500: '#2f0e42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0e42;
$custom-light: #6a5077;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0e42",
  "rgb": {
    "r": 47,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 278.077,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24774,
    "c": 0.0956,
    "h": 310.3
  },
  "luminance": 0.01312
}

Semantic roles & 50–950 ramp

primary
#2F0E42
secondary
#4B7D2F
accent
#E8407D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0E42

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

Preview Lab → · Contrast checker → · Palette generator →

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