#2F0B44#2F0B44

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

Color values

HEX#2F0B44
RGBrgb(47, 11, 68)
HSLhsl(278, 72%, 15%)
HSVhsv(278, 84%, 27%)
CMYKcmyk(30.9%, 83.8%, 0%, 73.3%)
CIE-LABlab(11.00, 28.97, -27.77)
CIE-LCHlch(11.00, 40.13, 316.21°)
OKLaboklab(24.57% 0.065 -0.0787)
OKLCHoklch(24.57% 0.102 309.5)
XYZxyz(2.3351, 1.2611, 5.5881)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B44 #20440B
analogous
#120B44 #2F0B44 #440B3C
triadic
#2F0B44 #442F0B #0B442F
tetradic
#2F0B44 #44120B #20440B #0B3C44
square
#2F0B44 #44120B #20440B #0B3C44
split-complementary
#2F0B44 #3C440B #0B4412
monochromatic
#12041A #12041A #2F0B44 #531479 #781CAD

Accessibility & contrast

On white

16.77
#2F0B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0B44
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B44#FFFFFF#000000##FFFFFF
##2F0B441.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#001E43
Tritanopia (blue-blind)
#2C1827
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0b44;
/* rgb */ color: rgb(47, 11, 68);
/* oklch */ color: oklch(24.6% 0.102 309.5);
Tailwind
colors: {
  custom: {
    50: '#6a4e78',
    500: '#2f0b44',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b44;
$custom-light: #6a4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b44",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 68
  },
  "hsl": {
    "h": 277.895,
    "s": 72.152,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24574,
    "c": 0.10212,
    "h": 309.5
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#2F0B44
secondary
#4A812A
accent
#EF397C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F0B44

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

Preview Lab → · Contrast checker → · Palette generator →

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