#2F0F3B#2F0F3B

#2F0F3B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.086 H 315.5°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2F0F3B
RGBrgb(47, 15, 59)
HSLhsl(284, 59%, 15%)
HSVhsv(284, 75%, 23%)
CMYKcmyk(20.3%, 74.6%, 0%, 76.9%)
CIE-LABlab(11.01, 24.62, -21.38)
CIE-LCHlch(11.01, 32.60, 319.03°)
OKLaboklab(24.35% 0.0611 -0.06)
OKLCHoklch(24.35% 0.086 315.5)
XYZxyz(2.1324, 1.2618, 4.2681)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F3B #1B3B0F
analogous
#190F3B #2F0F3B #3B0F31
triadic
#2F0F3B #3B2F0F #0F3B2F
tetradic
#2F0F3B #3B190F #1B3B0F #0F313B
square
#2F0F3B #3B190F #1B3B0F #0F313B
split-complementary
#2F0F3B #313B0F #0F3B19
monochromatic
#130618 #130618 #2F0F3B #561B6C #7D289D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F0F3B#FFFFFF#000000##FFFFFF
##2F0F3B1.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)
#011C3C
Deuteranopia (green-blind)
#0F1E3A
Tritanopia (blue-blind)
#2E1723
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0f3b;
/* rgb */ color: rgb(47, 15, 59);
/* oklch */ color: oklch(24.3% 0.086 315.5);
Tailwind
colors: {
  custom: {
    50: '#695071',
    500: '#2f0f3b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f3b;
$custom-light: #695071;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f3b",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 283.636,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24347,
    "c": 0.08564,
    "h": 315.5
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

primary
#2F0F3B
secondary
#437530
accent
#E34570
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F0F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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