#2F0C42#2F0C42

#2F0C42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.098 H 310.7°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2F0C42
RGBrgb(47, 12, 66)
HSLhsl(279, 69%, 15%)
HSVhsv(279, 82%, 26%)
CMYKcmyk(28.8%, 81.8%, 0%, 74.1%)
CIE-LABlab(11.00, 27.98, -26.37)
CIE-LCHlch(11.00, 38.44, 316.70°)
OKLaboklab(24.52% 0.0643 -0.0746)
OKLCHoklch(24.52% 0.098 310.7)
XYZxyz(2.2869, 1.2607, 5.2761)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C42 #1F420C
analogous
#140C42 #2F0C42 #420C3A
triadic
#2F0C42 #422F0C #0C422F
tetradic
#2F0C42 #42140C #1F420C #0C3A42
square
#2F0C42 #42140C #1F420C #0C3A42
split-complementary
#2F0C42 #3A420C #0C4214
monochromatic
#12051A #12051A #2F0C42 #541576 #791FAA

Accessibility & contrast

On white

16.77
#2F0C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C42
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C42#FFFFFF#000000##FFFFFF
##2F0C421.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#2C1826
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0c42;
/* rgb */ color: rgb(47, 12, 66);
/* oklch */ color: oklch(24.5% 0.098 310.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f77',
    500: '#2f0c42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c42;
$custom-light: #6a4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c42",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 278.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24518,
    "c": 0.09848,
    "h": 310.7
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#2F0C42
secondary
#497E2C
accent
#EC3C7A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0C42

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

Preview Lab → · Contrast checker → · Palette generator →

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