#2F0C4C#2F0C4C

#2F0C4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.110 H 304.3°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2F0C4C
RGBrgb(47, 12, 76)
HSLhsl(273, 73%, 17%)
HSVhsv(273, 84%, 30%)
CMYKcmyk(38.2%, 84.2%, 0%, 70.2%)
CIE-LABlab(11.88, 30.62, -31.92)
CIE-LCHlch(11.88, 44.23, 313.81°)
OKLaboklab(25.42% 0.062 -0.0909)
OKLCHoklch(25.42% 0.11 304.3)
XYZxyz(2.6080, 1.3891, 6.9668)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C4C #294C0C
analogous
#0F0C4C #2F0C4C #4C0C49
triadic
#2F0C4C #4C2F0C #0C4C2F
tetradic
#2F0C4C #4C0F0C #294C0C #0C494C
square
#2F0C4C #4C0F0C #294C0C #0C494C
split-complementary
#2F0C4C #494C0C #0C4C0F
monochromatic
#10041A #10041A #2F0C4C #501481 #701DB6

Accessibility & contrast

On white

16.43
#2F0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0C4C
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C4C#FFFFFF#000000##FFFFFF
##2F0C4C1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#291C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0c4c;
/* rgb */ color: rgb(47, 12, 76);
/* oklch */ color: oklch(25.4% 0.110 304.3);
Tailwind
colors: {
  custom: {
    50: '#6b4f7f',
    500: '#2f0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c4c;
$custom-light: #6b4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c4c",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 272.813,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25422,
    "c": 0.11006,
    "h": 304.3
  },
  "luminance": 0.01389
}

Semantic roles & 50–950 ramp

primary
#2F0C4C
secondary
#56882C
accent
#EF388B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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