#2F0C4F#2F0C4F

#2F0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.114 H 302.6°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2F0C4F
RGBrgb(47, 12, 79)
HSLhsl(271, 74%, 18%)
HSVhsv(271, 85%, 31%)
CMYKcmyk(40.5%, 84.8%, 0%, 69%)
CIE-LABlab(12.17, 31.43, -33.52)
CIE-LCHlch(12.17, 45.95, 313.15°)
OKLaboklab(25.71% 0.0611 -0.0957)
OKLCHoklch(25.71% 0.114 302.6)
XYZxyz(2.7147, 1.4318, 7.5290)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C4F #2C4F0C
analogous
#0D0C4F #2F0C4F #4F0C4D
triadic
#2F0C4F #4F2F0C #0C4F2F
tetradic
#2F0C4F #4F0D0C #2C4F0C #0C4D4F
square
#2F0C4F #4F0D0C #2C4F0C #0C4D4F
split-complementary
#2F0C4F #4D4F0C #0C4F0D
monochromatic
#10041B #10041B #2F0C4F #4F1484 #6E1CB9

Accessibility & contrast

On white

16.32
#2F0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C4F
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C4F#FFFFFF#000000##FFFFFF
##2F0C4F1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#281E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0c4f;
/* rgb */ color: rgb(47, 12, 79);
/* oklch */ color: oklch(25.7% 0.114 302.6);
Tailwind
colors: {
  custom: {
    50: '#6c4f81',
    500: '#2f0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c4f;
$custom-light: #6c4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c4f",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 271.343,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25709,
    "c": 0.11352,
    "h": 302.6
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#2F0C4F
secondary
#598B2C
accent
#F03890
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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