#2F0C49#2F0C49

#2F0C49 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.107 H 306.1°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2F0C49
RGBrgb(47, 12, 73)
HSLhsl(274, 72%, 17%)
HSVhsv(274, 84%, 29%)
CMYKcmyk(35.6%, 83.6%, 0%, 71.4%)
CIE-LABlab(11.61, 29.81, -30.28)
CIE-LCHlch(11.61, 42.50, 314.55°)
OKLaboklab(25.14% 0.0628 -0.0861)
OKLCHoklch(25.14% 0.107 306.1)
XYZxyz(2.5061, 1.3483, 6.4303)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0C49 #26490C
analogous
#100C49 #2F0C49 #490C45
triadic
#2F0C49 #492F0C #0C492F
tetradic
#2F0C49 #49100C #26490C #0C4549
square
#2F0C49 #49100C #26490C #0C4549
split-complementary
#2F0C49 #45490C #0C4910
monochromatic
#11041A #11041A #2F0C49 #51157E #731DB2

Accessibility & contrast

On white

16.54
#2F0C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0C49
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0C49#FFFFFF#000000##FFFFFF
##2F0C491.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#2A1B2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0c49;
/* rgb */ color: rgb(47, 12, 73);
/* oklch */ color: oklch(25.1% 0.107 306.1);
Tailwind
colors: {
  custom: {
    50: '#6b4f7c',
    500: '#2f0c49',
    950: '#000000',
  },
}
SCSS
$custom: #2f0c49;
$custom-light: #6b4f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0c49",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 274.426,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25143,
    "c": 0.10658,
    "h": 306.1
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#2F0C49
secondary
#52852C
accent
#EE3987
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0C49

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

Preview Lab → · Contrast checker → · Palette generator →

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