#2F0B3B#2F0B3B

#2F0B3B is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.092 H 316.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2F0B3B
RGBrgb(47, 11, 59)
HSLhsl(285, 69%, 14%)
HSVhsv(285, 81%, 23%)
CMYKcmyk(20.3%, 81.4%, 0%, 76.9%)
CIE-LABlab(10.26, 26.72, -22.58)
CIE-LCHlch(10.26, 34.98, 319.79°)
OKLaboklab(23.81% 0.0665 -0.0635)
OKLCHoklch(23.81% 0.092 316.3)
XYZxyz(2.0813, 1.1595, 4.2510)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B3B #173B0B
analogous
#170B3B #2F0B3B #3B0B2F
triadic
#2F0B3B #3B2F0B #0B3B2F
tetradic
#2F0B3B #3B170B #173B0B #0B2F3B
square
#2F0B3B #3B170B #173B0B #0B2F3B
split-complementary
#2F0B3B #2F3B0B #0B3B17
monochromatic
#15051A #15051A #2F0B3B #58156F #811EA2

Accessibility & contrast

On white

17.05
#2F0B3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F0B3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B3B
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B3B#FFFFFF#000000##FFFFFF
##2F0B3B1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#0B1D3A
Tritanopia (blue-blind)
#2E1522
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0b3b;
/* rgb */ color: rgb(47, 11, 59);
/* oklch */ color: oklch(23.8% 0.092 316.3);
Tailwind
colors: {
  custom: {
    50: '#6a4e71',
    500: '#2f0b3b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b3b;
$custom-light: #6a4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b3b",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 59
  },
  "hsl": {
    "h": 285,
    "s": 68.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23809,
    "c": 0.09194,
    "h": 316.3
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#2F0B3B
secondary
#3D782A
accent
#EB3C68
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2F0B3B

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

Preview Lab → · Contrast checker → · Palette generator →

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