#2F0C4A#2F0C4A

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

Color values

HEX#2F0C4A
RGBrgb(47, 12, 74)
HSLhsl(274, 72%, 17%)
HSVhsv(274, 84%, 29%)
CMYKcmyk(36.5%, 83.8%, 0%, 71%)
CIE-LABlab(11.70, 30.08, -30.83)
CIE-LCHlch(11.70, 43.07, 314.29°)
OKLaboklab(25.24% 0.0625 -0.0877)
OKLCHoklch(25.24% 0.108 305.5)
XYZxyz(2.5395, 1.3617, 6.6063)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C4A #274A0C
analogous
#100C4A #2F0C4A #4A0C46
triadic
#2F0C4A #4A2F0C #0C4A2F
tetradic
#2F0C4A #4A100C #274A0C #0C464A
square
#2F0C4A #4A100C #274A0C #0C464A
split-complementary
#2F0C4A #464A0C #0C4A10
monochromatic
#11041A #11041A #2F0C4A #50157F #721DB3

Accessibility & contrast

On white

16.50
#2F0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C4A
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C4A#FFFFFF#000000##FFFFFF
##2F0C4A1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#2A1C2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0c4a;
/* rgb */ color: rgb(47, 12, 74);
/* oklch */ color: oklch(25.2% 0.108 305.5);
Tailwind
colors: {
  custom: {
    50: '#6b4f7d',
    500: '#2f0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c4a;
$custom-light: #6b4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c4a",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 273.871,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25235,
    "c": 0.10774,
    "h": 305.5
  },
  "luminance": 0.01362
}

Semantic roles & 50–950 ramp

primary
#2F0C4A
secondary
#53862C
accent
#EF3988
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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