#2F0440#2F0440

#2F0440 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.107 H 313.7°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#2F0440
RGBrgb(47, 4, 64)
HSLhsl(283, 88%, 13%)
HSVhsv(283, 94%, 25%)
CMYKcmyk(26.6%, 93.8%, 0%, 74.9%)
CIE-LABlab(9.49, 31.33, -27.39)
CIE-LCHlch(9.49, 41.61, 318.84°)
OKLaboklab(23.41% 0.074 -0.0775)
OKLCHoklch(23.41% 0.107 313.7)
XYZxyz(2.1410, 1.0614, 4.9416)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0440 #154004
analogous
#110440 #2F0440 #400433
triadic
#2F0440 #402F04 #04402F
tetradic
#2F0440 #401104 #154004 #043340
square
#2F0440 #401104 #154004 #043340
split-complementary
#2F0440 #334004 #044011
monochromatic
#15021D #15021D #2F0440 #59087A #840BB3

Accessibility & contrast

On white

17.32
#2F0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0440
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0440#FFFFFF#000000##FFFFFF
##2F04401.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#2D1323
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0440;
/* rgb */ color: rgb(47, 4, 64);
/* oklch */ color: oklch(23.4% 0.107 313.7);
Tailwind
colors: {
  custom: {
    50: '#6b4a75',
    500: '#2f0440',
    950: '#000000',
  },
}
SCSS
$custom: #2f0440;
$custom-light: #6b4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0440",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 283,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23405,
    "c": 0.10721,
    "h": 313.7
  },
  "luminance": 0.01061
}

Semantic roles & 50–950 ramp

primary
#2F0440
secondary
#3B811F
accent
#FE2966
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0440

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

Preview Lab → · Contrast checker → · Palette generator →

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