#2F0C44#2F0C44

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

Color values

HEX#2F0C44
RGBrgb(47, 12, 68)
HSLhsl(278, 70%, 16%)
HSVhsv(278, 82%, 27%)
CMYKcmyk(30.9%, 82.4%, 0%, 73.3%)
CIE-LABlab(11.17, 28.49, -27.50)
CIE-LCHlch(11.17, 39.60, 316.02°)
OKLaboklab(24.69% 0.0639 -0.078)
OKLCHoklch(24.69% 0.101 309.3)
XYZxyz(2.3469, 1.2847, 5.5921)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C44 #21440C
analogous
#130C44 #2F0C44 #440C3D
triadic
#2F0C44 #442F0C #0C442F
tetradic
#2F0C44 #44130C #21440C #0C3D44
square
#2F0C44 #44130C #21440C #0C3D44
split-complementary
#2F0C44 #3D440C #0C4413
monochromatic
#12051A #12051A #2F0C44 #531578 #771EAC

Accessibility & contrast

On white

16.71
#2F0C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C44
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C44#FFFFFF#000000##FFFFFF
##2F0C441.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#011E43
Tritanopia (blue-blind)
#2C1927
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0c44;
/* rgb */ color: rgb(47, 12, 68);
/* oklch */ color: oklch(24.7% 0.101 309.3);
Tailwind
colors: {
  custom: {
    50: '#6a4f78',
    500: '#2f0c44',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c44;
$custom-light: #6a4f78;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c44",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 277.5,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24692,
    "c": 0.1008,
    "h": 309.3
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#2F0C44
secondary
#4B802C
accent
#ED3B7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C44

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

Preview Lab → · Contrast checker → · Palette generator →

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