#2F0C41#2F0C41

#2F0C41 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.097 H 311.5°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#2F0C41
RGBrgb(47, 12, 65)
HSLhsl(280, 69%, 15%)
HSVhsv(280, 82%, 25%)
CMYKcmyk(27.7%, 81.5%, 0%, 74.5%)
CIE-LABlab(10.91, 27.72, -25.79)
CIE-LCHlch(10.91, 37.87, 317.06°)
OKLaboklab(24.43% 0.0644 -0.0729)
OKLCHoklch(24.43% 0.097 311.5)
XYZxyz(2.2577, 1.2490, 5.1221)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C41 #1E410C
analogous
#150C41 #2F0C41 #410C38
triadic
#2F0C41 #412F0C #0C412F
tetradic
#2F0C41 #41150C #1E410C #0C3841
square
#2F0C41 #41150C #1E410C #0C3841
split-complementary
#2F0C41 #38410C #0C4115
monochromatic
#13051A #13051A #2F0C41 #541675 #7A1FA8

Accessibility & contrast

On white

16.80
#2F0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C41
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C41#FFFFFF#000000##FFFFFF
##2F0C411.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#051E40
Tritanopia (blue-blind)
#2D1825
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0c41;
/* rgb */ color: rgb(47, 12, 65);
/* oklch */ color: oklch(24.4% 0.097 311.5);
Tailwind
colors: {
  custom: {
    50: '#6a4e76',
    500: '#2f0c41',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c41;
$custom-light: #6a4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c41",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 279.623,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24432,
    "c": 0.09733,
    "h": 311.5
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

primary
#2F0C41
secondary
#477D2C
accent
#EC3C78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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