#2F0849#2F0849

#2F0849 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.111 H 306.9°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#2F0849
RGBrgb(47, 8, 73)
HSLhsl(276, 80%, 16%)
HSVhsv(276, 89%, 29%)
CMYKcmyk(35.6%, 89%, 0%, 71.4%)
CIE-LABlab(10.99, 31.61, -31.30)
CIE-LCHlch(10.99, 44.48, 315.29°)
OKLaboklab(24.71% 0.0668 -0.0891)
OKLCHoklch(24.71% 0.111 306.9)
XYZxyz(2.4615, 1.2591, 6.4154)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0849 #224908
analogous
#0E0849 #2F0849 #490842
triadic
#2F0849 #492F08 #08492F
tetradic
#2F0849 #490E08 #224908 #084249
square
#2F0849 #490E08 #224908 #084249
split-complementary
#2F0849 #424908 #08490E
monochromatic
#12031C #12031C #2F0849 #530E80 #7614B7

Accessibility & contrast

On white

16.78
#2F0849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0849
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0849#FFFFFF#000000##FFFFFF
##2F08491.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4B
Deuteranopia (green-blind)
#001E48
Tritanopia (blue-blind)
#2A1929
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0849;
/* rgb */ color: rgb(47, 8, 73);
/* oklch */ color: oklch(24.7% 0.111 306.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d7c',
    500: '#2f0849',
    950: '#000000',
  },
}
SCSS
$custom: #2f0849;
$custom-light: #6b4d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0849",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 73
  },
  "hsl": {
    "h": 276,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24706,
    "c": 0.11134,
    "h": 306.9
  },
  "luminance": 0.01259
}

Semantic roles & 50–950 ramp

primary
#2F0849
secondary
#4D8726
accent
#F73180
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0849

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

Preview Lab → · Contrast checker → · Palette generator →

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