#2F0340#2F0340

#2F0340 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.3% C 0.109 H 313.9°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2F0340
RGBrgb(47, 3, 64)
HSLhsl(283, 91%, 13%)
HSVhsv(283, 95%, 25%)
CMYKcmyk(26.6%, 95.3%, 0%, 74.9%)
CIE-LABlab(9.32, 31.84, -27.67)
CIE-LCHlch(9.32, 42.18, 319.01°)
OKLaboklab(23.28% 0.0753 -0.0784)
OKLCHoklch(23.28% 0.109 313.9)
XYZxyz(2.1301, 1.0397, 4.9380)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0340 #144003
analogous
#100340 #2F0340 #400332
triadic
#2F0340 #402F03 #03402F
tetradic
#2F0340 #401003 #144003 #033240
square
#2F0340 #401003 #144003 #033240
split-complementary
#2F0340 #324003 #034010
monochromatic
#15011D #15011D #2F0340 #5A067A #8508B5

Accessibility & contrast

On white

17.38
#2F0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0340
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0340#FFFFFF#000000##FFFFFF
##2F03401.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0340;
/* rgb */ color: rgb(47, 3, 64);
/* oklch */ color: oklch(23.3% 0.109 313.9);
Tailwind
colors: {
  custom: {
    50: '#6b4a75',
    500: '#2f0340',
    950: '#000000',
  },
}
SCSS
$custom: #2f0340;
$custom-light: #6b4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0340",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 283.279,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23283,
    "c": 0.10868,
    "h": 313.9
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#2F0340
secondary
#39821D
accent
#FF2964
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0340

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

Preview Lab → · Contrast checker → · Palette generator →

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