#2F0B47#2F0B47

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

Color values

HEX#2F0B47
RGBrgb(47, 11, 71)
HSLhsl(276, 73%, 16%)
HSVhsv(276, 85%, 28%)
CMYKcmyk(33.8%, 84.5%, 0%, 72.2%)
CIE-LABlab(11.27, 29.75, -29.45)
CIE-LCHlch(11.27, 41.86, 315.30°)
OKLaboklab(24.84% 0.0643 -0.0837)
OKLCHoklch(24.84% 0.106 307.6)
XYZxyz(2.4291, 1.2986, 6.0827)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B47 #23470B
analogous
#110B47 #2F0B47 #470B41
triadic
#2F0B47 #472F0B #0B472F
tetradic
#2F0B47 #47110B #23470B #0B4147
square
#2F0B47 #47110B #23470B #0B4147
split-complementary
#2F0B47 #41470B #0B4711
monochromatic
#12041A #12041A #2F0B47 #52137C #751BB1

Accessibility & contrast

On white

16.67
#2F0B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0B47
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B47#FFFFFF#000000##FFFFFF
##2F0B471.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#2B1A28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0b47;
/* rgb */ color: rgb(47, 11, 71);
/* oklch */ color: oklch(24.8% 0.106 307.6);
Tailwind
colors: {
  custom: {
    50: '#6b4e7b',
    500: '#2f0b47',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b47;
$custom-light: #6b4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b47",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 276,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24844,
    "c": 0.10554,
    "h": 307.6
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#2F0B47
secondary
#4E832A
accent
#F03882
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0B47

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

Preview Lab → · Contrast checker → · Palette generator →

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