#2F0A46#2F0A46

#2F0A46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.106 H 308.4°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2F0A46
RGBrgb(47, 10, 70)
HSLhsl(277, 75%, 16%)
HSVhsv(277, 86%, 27%)
CMYKcmyk(32.9%, 85.7%, 0%, 72.5%)
CIE-LABlab(11.02, 29.94, -29.15)
CIE-LCHlch(11.02, 41.79, 315.77°)
OKLaboklab(24.64% 0.0656 -0.0828)
OKLCHoklch(24.64% 0.106 308.4)
XYZxyz(2.3861, 1.2637, 5.9114)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A46 #21460A
analogous
#110A46 #2F0A46 #460A3F
triadic
#2F0A46 #462F0A #0A462F
tetradic
#2F0A46 #46110A #21460A #0A3F46
square
#2F0A46 #46110A #21460A #0A3F46
split-complementary
#2F0A46 #3F460A #0A4611
monochromatic
#12041B #12041B #2F0A46 #53127C #7719B1

Accessibility & contrast

On white

16.76
#2F0A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0A46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0A46
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A46#FFFFFF#000000##FFFFFF
##2F0A461.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#2B1928
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0a46;
/* rgb */ color: rgb(47, 10, 70);
/* oklch */ color: oklch(24.6% 0.106 308.4);
Tailwind
colors: {
  custom: {
    50: '#6b4e7a',
    500: '#2f0a46',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a46;
$custom-light: #6b4e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a46",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 70
  },
  "hsl": {
    "h": 277,
    "s": 75,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24642,
    "c": 0.10563,
    "h": 308.4
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#2F0A46
secondary
#4B8329
accent
#F2367E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0A46

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

Preview Lab → · Contrast checker → · Palette generator →

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