#2F0844#2F0844

#2F0844 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.106 H 310.1°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#2F0844
RGBrgb(47, 8, 68)
HSLhsl(279, 79%, 15%)
HSVhsv(279, 88%, 27%)
CMYKcmyk(30.9%, 88.2%, 0%, 73.3%)
CIE-LABlab(10.52, 30.34, -28.55)
CIE-LCHlch(10.52, 41.66, 316.75°)
OKLaboklab(24.24% 0.0683 -0.081)
OKLCHoklch(24.24% 0.106 310.1)
XYZxyz(2.3023, 1.1954, 5.5772)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0844 #1D4408
analogous
#110844 #2F0844 #44083B
triadic
#2F0844 #442F08 #08442F
tetradic
#2F0844 #441108 #1D4408 #083B44
square
#2F0844 #441108 #1D4408 #083B44
split-complementary
#2F0844 #3B4408 #084411
monochromatic
#13031B #13031B #2F0844 #550E7B #7B15B2

Accessibility & contrast

On white

16.95
#2F0844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0844
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0844#FFFFFF#000000##FFFFFF
##2F08441.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001D43
Tritanopia (blue-blind)
#2C1726
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0844;
/* rgb */ color: rgb(47, 8, 68);
/* oklch */ color: oklch(24.2% 0.106 310.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d78',
    500: '#2f0844',
    950: '#000000',
  },
}
SCSS
$custom: #2f0844;
$custom-light: #6b4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0844",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 279,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24238,
    "c": 0.10592,
    "h": 310.1
  },
  "luminance": 0.01195
}

Semantic roles & 50–950 ramp

primary
#2F0844
secondary
#468226
accent
#F53277
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0844

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

Preview Lab → · Contrast checker → · Palette generator →

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