#2F043F#2F043F

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

Color values

HEX#2F043F
RGBrgb(47, 4, 63)
HSLhsl(284, 88%, 13%)
HSVhsv(284, 94%, 25%)
CMYKcmyk(25.4%, 93.7%, 0%, 75.3%)
CIE-LABlab(9.40, 31.09, -26.82)
CIE-LCHlch(9.40, 41.06, 319.22°)
OKLaboklab(23.31% 0.0743 -0.0759)
OKLCHoklch(23.31% 0.106 314.4)
XYZxyz(2.1128, 1.0501, 4.7931)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F043F #143F04
analogous
#11043F #2F043F #3F0431
triadic
#2F043F #3F2F04 #043F2F
tetradic
#2F043F #3F1104 #143F04 #04313F
square
#2F043F #3F1104 #143F04 #04313F
split-complementary
#2F043F #313F04 #043F11
monochromatic
#15021D #15021D #2F043F #5A0879 #850BB2

Accessibility & contrast

On white

17.36
#2F043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F043F
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F043F#FFFFFF#000000##FFFFFF
##2F043F1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#011B3E
Tritanopia (blue-blind)
#2D1222
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f043f;
/* rgb */ color: rgb(47, 4, 63);
/* oklch */ color: oklch(23.3% 0.106 314.4);
Tailwind
colors: {
  custom: {
    50: '#6b4a74',
    500: '#2f043f',
    950: '#000000',
  },
}
SCSS
$custom: #2f043f;
$custom-light: #6b4a74;
$custom-dark: #000000;
JSON
{
  "hex": "#2f043f",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 283.729,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23313,
    "c": 0.10621,
    "h": 314.4
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#2F043F
secondary
#39801E
accent
#FE2A63
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F043F

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

Preview Lab → · Contrast checker → · Palette generator →

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