#2F0B46#2F0B46

#2F0B46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.104 H 308.2°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2F0B46
RGBrgb(47, 11, 70)
HSLhsl(277, 73%, 16%)
HSVhsv(277, 84%, 27%)
CMYKcmyk(32.9%, 84.3%, 0%, 72.5%)
CIE-LABlab(11.18, 29.49, -28.89)
CIE-LCHlch(11.18, 41.28, 315.59°)
OKLaboklab(24.75% 0.0646 -0.082)
OKLCHoklch(24.75% 0.104 308.2)
XYZxyz(2.3972, 1.2859, 5.9151)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B46 #22460B
analogous
#110B46 #2F0B46 #460B3F
triadic
#2F0B46 #462F0B #0B462F
tetradic
#2F0B46 #46110B #22460B #0B3F46
square
#2F0B46 #46110B #22460B #0B3F46
split-complementary
#2F0B46 #3F460B #0B4611
monochromatic
#12041A #12041A #2F0B46 #53137B #761CB0

Accessibility & contrast

On white

16.70
#2F0B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F0B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B46
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B46#FFFFFF#000000##FFFFFF
##2F0B461.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0b46;
/* rgb */ color: rgb(47, 11, 70);
/* oklch */ color: oklch(24.8% 0.104 308.2);
Tailwind
colors: {
  custom: {
    50: '#6b4e7a',
    500: '#2f0b46',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b46;
$custom-light: #6b4e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b46",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 276.61,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24753,
    "c": 0.10439,
    "h": 308.2
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#2F0B46
secondary
#4D822A
accent
#F03880
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0B46

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

Preview Lab → · Contrast checker → · Palette generator →

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