#2F073B#2F073B

#2F073B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.098 H 317.0°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#2F073B
RGBrgb(47, 7, 59)
HSLhsl(286, 79%, 13%)
HSVhsv(286, 88%, 23%)
CMYKcmyk(20.3%, 88.1%, 0%, 76.9%)
CIE-LABlab(9.58, 28.65, -23.67)
CIE-LCHlch(9.58, 37.16, 320.43°)
OKLaboklab(23.33% 0.0714 -0.0667)
OKLCHoklch(23.33% 0.098 317)
XYZxyz(2.0376, 1.0721, 4.2364)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F073B #133B07
analogous
#15073B #2F073B #3B072D
triadic
#2F073B #3B2F07 #073B2F
tetradic
#2F073B #3B1507 #133B07 #072D3B
square
#2F073B #3B1507 #133B07 #072D3B
split-complementary
#2F073B #2D3B07 #073B15
monochromatic
#16031B #16031B #2F073B #5B0D72 #8614A8

Accessibility & contrast

On white

17.29
#2F073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F073B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F073B
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F073B#FFFFFF#000000##FFFFFF
##2F073B1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#081C3A
Tritanopia (blue-blind)
#2E1221
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f073b;
/* rgb */ color: rgb(47, 7, 59);
/* oklch */ color: oklch(23.3% 0.098 317.0);
Tailwind
colors: {
  custom: {
    50: '#6a4c71',
    500: '#2f073b',
    950: '#000000',
  },
}
SCSS
$custom: #2f073b;
$custom-light: #6a4c71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f073b",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 286.154,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23328,
    "c": 0.09771,
    "h": 317
  },
  "luminance": 0.01072
}

Semantic roles & 50–950 ramp

primary
#2F073B
secondary
#377A23
accent
#F5335F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F073B

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

Preview Lab → · Contrast checker → · Palette generator →

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