#2F0C4D#2F0C4D

#2F0C4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.111 H 303.7°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2F0C4D
RGBrgb(47, 12, 77)
HSLhsl(272, 73%, 17%)
HSVhsv(272, 84%, 30%)
CMYKcmyk(39%, 84.4%, 0%, 69.8%)
CIE-LABlab(11.98, 30.88, -32.46)
CIE-LCHlch(11.98, 44.80, 313.58°)
OKLaboklab(25.52% 0.0617 -0.0925)
OKLCHoklch(25.52% 0.111 303.7)
XYZxyz(2.6430, 1.4031, 7.1513)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C4D #2A4D0C
analogous
#0F0C4D #2F0C4D #4D0C4A
triadic
#2F0C4D #4D2F0C #0C4D2F
tetradic
#2F0C4D #4D0F0C #2A4D0C #0C4A4D
square
#2F0C4D #4D0F0C #2A4D0C #0C4A4D
split-complementary
#2F0C4D #4A4D0C #0C4D0F
monochromatic
#10041A #10041A #2F0C4D #4F1482 #701DB7

Accessibility & contrast

On white

16.40
#2F0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C4D
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C4D#FFFFFF#000000##FFFFFF
##2F0C4D1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#291D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0c4d;
/* rgb */ color: rgb(47, 12, 77);
/* oklch */ color: oklch(25.5% 0.111 303.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f7f',
    500: '#2f0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c4d;
$custom-light: #6b4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c4d",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 272.308,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25517,
    "c": 0.11121,
    "h": 303.7
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#2F0C4D
secondary
#57892C
accent
#F0388D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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